diff options
author | kouloumos <kouloumosa@gmail.com> | 2023-01-13 12:21:33 +0200 |
---|---|---|
committer | kouloumos <kouloumosa@gmail.com> | 2023-01-16 19:14:21 +0200 |
commit | 6bd098a838881ba615c01354560a70d47256f90f (patch) | |
tree | 25abebd41e54566bb4b682f42b055cb7535c078f /test/functional/rpc_txoutproof.py | |
parent | 42029a7fd42e93426bdfb40d1918d739d20962af (diff) | |
download | bitcoin-6bd098a838881ba615c01354560a70d47256f90f.tar.xz |
test: simplify tests by using the pre-mined chain
Diffstat (limited to 'test/functional/rpc_txoutproof.py')
-rwxr-xr-x | test/functional/rpc_txoutproof.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/test/functional/rpc_txoutproof.py b/test/functional/rpc_txoutproof.py index d04d05962f..60b7ce8d20 100755 --- a/test/functional/rpc_txoutproof.py +++ b/test/functional/rpc_txoutproof.py @@ -4,7 +4,6 @@ # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test gettxoutproof and verifytxoutproof RPCs.""" -from test_framework.blocktools import COINBASE_MATURITY from test_framework.messages import ( CMerkleBlock, from_hex, @@ -20,7 +19,6 @@ from test_framework.wallet import MiniWallet class MerkleBlockTest(BitcoinTestFramework): def set_test_params(self): self.num_nodes = 2 - self.setup_clean_chain = True self.extra_args = [ [], ["-txindex"], @@ -28,12 +26,9 @@ class MerkleBlockTest(BitcoinTestFramework): def run_test(self): miniwallet = MiniWallet(self.nodes[0]) - # Add enough mature utxos to the wallet, so that all txs spend confirmed coins - self.generate(miniwallet, 5) - self.generate(self.nodes[0], COINBASE_MATURITY) chain_height = self.nodes[1].getblockcount() - assert_equal(chain_height, 105) + assert_equal(chain_height, 200) txid1 = miniwallet.send_self_transfer(from_node=self.nodes[0])['txid'] txid2 = miniwallet.send_self_transfer(from_node=self.nodes[0])['txid'] |