Changeset View
Changeset View
Standalone View
Standalone View
test/functional/nulldummy.py
Show All 35 Lines | |||||
[Policy] Check that non-NULLDUMMY transactions are rejected before activation. | [Policy] Check that non-NULLDUMMY transactions are rejected before activation. | ||||
[Consensus] Check that the new NULLDUMMY rules are not enforced on the 431st block. | [Consensus] Check that the new NULLDUMMY rules are not enforced on the 431st block. | ||||
[Policy/Consensus] Check that the new NULLDUMMY rules are enforced on the 432nd block. | [Policy/Consensus] Check that the new NULLDUMMY rules are enforced on the 432nd block. | ||||
''' | ''' | ||||
class NULLDUMMYTest(BitcoinTestFramework): | class NULLDUMMYTest(BitcoinTestFramework): | ||||
def __init__(self): | def set_test_params(self): | ||||
super().__init__() | |||||
self.num_nodes = 1 | self.num_nodes = 1 | ||||
self.setup_clean_chain = True | self.setup_clean_chain = True | ||||
self.extra_args = [['-whitelist=127.0.0.1', '-walletprematurewitness']] | self.extra_args = [['-whitelist=127.0.0.1', '-walletprematurewitness']] | ||||
def run_test(self): | def run_test(self): | ||||
self.address = self.nodes[0].getnewaddress() | self.address = self.nodes[0].getnewaddress() | ||||
self.ms_address = self.nodes[0].addmultisigaddress(1, [self.address]) | self.ms_address = self.nodes[0].addmultisigaddress(1, [self.address]) | ||||
▲ Show 20 Lines • Show All 68 Lines • Show Last 20 Lines |