Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
otaliptus committed Mar 22, 2024
1 parent c8fabeb commit 5dff9d6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions adapters/bitcoin/src/helpers/parsers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ fn parse_relevant_inscriptions(
break; // we are done parsing
}
}
// If the found nonce is less than or equal to 16, push_int of reveal_script_builder
// uses the dedicated opcode OP_PUSHNUM before OP_PUSHDATA rather than OP_PUSHBYTES.
// When occurred, it was causing our tests to fail in the last match arm and returning an error.
// This giga fix is added to not to fail inside the envelope at the end when nonce <= 16.
Instruction::Op(OP_PUSHNUM_1)
| Instruction::Op(OP_PUSHNUM_2)
| Instruction::Op(OP_PUSHNUM_3)
Expand Down

0 comments on commit 5dff9d6

Please sign in to comment.