mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-10 03:47:29 -03:00
test: Use generate* from TestFramework, not TestNode
This commit is contained in:
parent
66d11b1435
commit
faac1cda6e
2 changed files with 5 additions and 5 deletions
|
@ -244,7 +244,7 @@ class MempoolPackageLimitsTest(BitcoinTestFramework):
|
|||
assert_equal(txres["package-error"], "package-mempool-limits")
|
||||
|
||||
# Clear mempool and check that the package passes now
|
||||
node.generate(1)
|
||||
self.generate(node, 1)
|
||||
assert all([res["allowed"] for res in node.testmempoolaccept(rawtxs=package_hex)])
|
||||
|
||||
def test_anc_count_limits(self):
|
||||
|
|
|
@ -63,7 +63,7 @@ class TransactionTimeRescanTest(BitcoinTestFramework):
|
|||
|
||||
# generate some btc to create transactions and check blockcount
|
||||
initial_mine = COINBASE_MATURITY + 1
|
||||
minernode.generatetoaddress(initial_mine, m1)
|
||||
self.generatetoaddress(minernode, initial_mine, m1)
|
||||
assert_equal(minernode.getblockcount(), initial_mine + 200)
|
||||
|
||||
# synchronize nodes and time
|
||||
|
@ -76,7 +76,7 @@ class TransactionTimeRescanTest(BitcoinTestFramework):
|
|||
miner_wallet.sendtoaddress(wo1, 10)
|
||||
|
||||
# generate blocks and check blockcount
|
||||
minernode.generatetoaddress(COINBASE_MATURITY, m1)
|
||||
self.generatetoaddress(minernode, COINBASE_MATURITY, m1)
|
||||
assert_equal(minernode.getblockcount(), initial_mine + 300)
|
||||
|
||||
# synchronize nodes and time
|
||||
|
@ -89,7 +89,7 @@ class TransactionTimeRescanTest(BitcoinTestFramework):
|
|||
miner_wallet.sendtoaddress(wo2, 5)
|
||||
|
||||
# generate blocks and check blockcount
|
||||
minernode.generatetoaddress(COINBASE_MATURITY, m1)
|
||||
self.generatetoaddress(minernode, COINBASE_MATURITY, m1)
|
||||
assert_equal(minernode.getblockcount(), initial_mine + 400)
|
||||
|
||||
# synchronize nodes and time
|
||||
|
@ -102,7 +102,7 @@ class TransactionTimeRescanTest(BitcoinTestFramework):
|
|||
miner_wallet.sendtoaddress(wo3, 1)
|
||||
|
||||
# generate more blocks and check blockcount
|
||||
minernode.generatetoaddress(COINBASE_MATURITY, m1)
|
||||
self.generatetoaddress(minernode, COINBASE_MATURITY, m1)
|
||||
assert_equal(minernode.getblockcount(), initial_mine + 500)
|
||||
|
||||
self.log.info('Check user\'s final balance and transaction count')
|
||||
|
|
Loading…
Reference in a new issue