Skip to content

Commit a24914e

Browse files
committed
added some constants comments
1 parent adc8431 commit a24914e

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

bitcoinutils/constants.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,17 +61,21 @@
6161
SIGHASH_ANYONECANPAY = 0x80
6262

6363

64-
# Constants for time lock and RB
64+
# Constants for time lock and RBF
6565
TYPE_ABSOLUTE_TIMELOCK = 0x101
6666
TYPE_RELATIVE_TIMELOCK = 0x201
6767
TYPE_REPLACE_BY_FEE = 0x301
6868

6969
DEFAULT_TX_LOCKTIME = b"\x00\x00\x00\x00"
7070

71+
# required for signing
7172
EMPTY_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
7276
DEFAULT_TX_SEQUENCE = b"\xfd\xff\xff\xff"
77+
7378
ABSOLUTE_TIMELOCK_SEQUENCE = b"\xfe\xff\xff\xff"
74-
FINAL_TX_SEQUENCE = b"\xff\xff\xff\xff"
7579

7680
REPLACE_BY_FEE_SEQUENCE = b"\x01\x00\x00\x00"
7781

@@ -93,8 +97,8 @@
9397
HEADER_SIZE = 80
9498

9599
BLOCK_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
}

0 commit comments

Comments
 (0)