Changeset View
Changeset View
Standalone View
Standalone View
test/functional/bip68-sequence.py
Show All 17 Lines | |||||
SEQUENCE_LOCKTIME_GRANULARITY = 9 # this is a bit-shift | SEQUENCE_LOCKTIME_GRANULARITY = 9 # this is a bit-shift | ||||
SEQUENCE_LOCKTIME_MASK = 0x0000ffff | SEQUENCE_LOCKTIME_MASK = 0x0000ffff | ||||
# RPC error for non-BIP68 final transactions | # RPC error for non-BIP68 final transactions | ||||
NOT_FINAL_ERROR = "64: non-BIP68-final" | NOT_FINAL_ERROR = "64: non-BIP68-final" | ||||
class BIP68Test(BitcoinTestFramework): | class BIP68Test(BitcoinTestFramework): | ||||
def set_test_params(self): | |||||
def __init__(self): | |||||
super().__init__() | |||||
self.num_nodes = 2 | self.num_nodes = 2 | ||||
self.setup_clean_chain = False | |||||
self.extra_args = [["-blockprioritypercentage=0"], | self.extra_args = [["-blockprioritypercentage=0"], | ||||
["-acceptnonstdtxn=0", "-blockprioritypercentage=0"]] | ["-blockprioritypercentage=0", "-acceptnonstdtxn=0"]] | ||||
def run_test(self): | def run_test(self): | ||||
self.relayfee = self.nodes[0].getnetworkinfo()["relayfee"] | self.relayfee = self.nodes[0].getnetworkinfo()["relayfee"] | ||||
# Generate some coins | # Generate some coins | ||||
self.nodes[0].generate(110) | self.nodes[0].generate(110) | ||||
self.log.info("Running test disable flag") | self.log.info("Running test disable flag") | ||||
▲ Show 20 Lines • Show All 411 Lines • Show Last 20 Lines |