Skip to content

Commit

Permalink
Disable the single-byte push, but leave it easy to enable.
Browse files Browse the repository at this point in the history
  • Loading branch information
gmart7t2 committed Feb 24, 2024
1 parent 2b26d2b commit 9c206d4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/inscriptions/tag.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,11 @@ impl Tag {
}

pub(crate) fn push_tag(self, tmp: script::Builder) -> script::Builder {
let use_single_byte_push_when_possible = false;

let bytes = self.bytes();

if bytes.len() == 1 && (1..17).contains(&bytes[0]) {
if use_single_byte_push_when_possible && bytes.len() == 1 && (1..17).contains(&bytes[0]) {
// if it's a single byte between 1 and 16, use a PUSHNUM opcode
tmp.push_opcode(
match bytes[0] {
Expand Down

0 comments on commit 9c206d4

Please sign in to comment.