File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed
Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change 6161SIGHASH_ANYONECANPAY = 0x80
6262
6363
64- # Constants for time lock and RB
64+ # Constants for time lock and RBF
6565TYPE_ABSOLUTE_TIMELOCK = 0x101
6666TYPE_RELATIVE_TIMELOCK = 0x201
6767TYPE_REPLACE_BY_FEE = 0x301
6868
6969DEFAULT_TX_LOCKTIME = b"\x00 \x00 \x00 \x00 "
7070
71+ # required for signing
7172EMPTY_TX_SEQUENCE = b"\x00 \x00 \x00 \x00 "
73+ # was the default before full-RBF
74+ FINAL_TX_SEQUENCE = b"\xff \xff \xff \xff "
75+ # after full RBF
7276DEFAULT_TX_SEQUENCE = b"\xfd \xff \xff \xff "
77+
7378ABSOLUTE_TIMELOCK_SEQUENCE = b"\xfe \xff \xff \xff "
74- FINAL_TX_SEQUENCE = b"\xff \xff \xff \xff "
7579
7680REPLACE_BY_FEE_SEQUENCE = b"\x01 \x00 \x00 \x00 "
7781
9397HEADER_SIZE = 80
9498
9599BLOCK_MAGIC_NUMBER = {
96- "f9beb4d9" : "mainnet" ,
97- "0b110907" : "testnet" ,
98- "fabfb5da" : "regtest" ,
99- "0a03cf40" : "signet"
100+ "f9beb4d9" : "mainnet" ,
101+ "0b110907" : "testnet" ,
102+ "fabfb5da" : "regtest" ,
103+ "0a03cf40" : "signet" ,
100104}
You can’t perform that action at this time.
0 commit comments