Skip to content

Commit

Permalink
Update tapscript leaf version
Browse files Browse the repository at this point in the history
  • Loading branch information
sanket1729 committed Aug 23, 2021
1 parent 7929e05 commit 11c12c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/script/interpreter.h
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ static constexpr size_t WITNESS_V0_KEYHASH_SIZE = 20;
static constexpr size_t WITNESS_V1_TAPROOT_SIZE = 32;

static constexpr uint8_t TAPROOT_LEAF_MASK = 0xfe;
static constexpr uint8_t TAPROOT_LEAF_TAPSCRIPT = 0xc0;
static constexpr uint8_t TAPROOT_LEAF_TAPSCRIPT = 0xc4;
static constexpr size_t TAPROOT_CONTROL_BASE_SIZE = 33;
static constexpr size_t TAPROOT_CONTROL_NODE_SIZE = 32;
static constexpr size_t TAPROOT_CONTROL_MAX_NODE_COUNT = 128;
Expand Down
2 changes: 1 addition & 1 deletion test/functional/test_framework/script.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

OPCODE_NAMES = {} # type: Dict[CScriptOp, str]

LEAF_VERSION_TAPSCRIPT = 0xc0
LEAF_VERSION_TAPSCRIPT = 0xc4

def hash160(s):
return hashlib.new('ripemd160', sha256(s)).digest()
Expand Down

0 comments on commit 11c12c5

Please sign in to comment.