src/apps/wallet/sign_tx: don't append bip115 replay protection script if no arguments provided

pull/25/head
Pavol Rusnak 6 years ago
parent 2b66deb3d6
commit 6d5a8645fd
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

@ -43,6 +43,8 @@ def output_script_p2sh(scripthash: bytes) -> bytearray:
def script_replay_protection_bip115(block_hash: bytes, block_height: bytes) -> bytearray:
if block_hash is None or block_height is None:
return bytearray()
block_height_size = len(block_height) # size in bytes of block_height (should be 3)
s = bytearray(38)
s[0] = 0x20 # 32 bytes for block hash

Loading…
Cancel
Save