mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 15:09:59 +01:00
Introduce separate 'generate' RPC call
This commit is contained in:
@@ -51,12 +51,12 @@ class MempoolCoinbaseTest(BitcoinTestFramework):
|
||||
spends1_id = [ self.nodes[0].sendrawtransaction(tx) for tx in spends1_raw ]
|
||||
|
||||
blocks = []
|
||||
blocks.extend(self.nodes[0].setgenerate(True, 1))
|
||||
blocks.extend(self.nodes[0].generate(1))
|
||||
|
||||
spends2_raw = [ self.create_tx(txid, node0_address, 49.99) for txid in spends1_id ]
|
||||
spends2_id = [ self.nodes[0].sendrawtransaction(tx) for tx in spends2_raw ]
|
||||
|
||||
blocks.extend(self.nodes[0].setgenerate(True, 1))
|
||||
blocks.extend(self.nodes[0].generate(1))
|
||||
|
||||
# mempool should be empty, all txns confirmed
|
||||
assert_equal(set(self.nodes[0].getrawmempool()), set())
|
||||
@@ -76,7 +76,7 @@ class MempoolCoinbaseTest(BitcoinTestFramework):
|
||||
assert(tx["confirmations"] == 0)
|
||||
|
||||
# Generate another block, they should all get mined
|
||||
self.nodes[0].setgenerate(True, 1)
|
||||
self.nodes[0].generate(1)
|
||||
# mempool should be empty, all txns confirmed
|
||||
assert_equal(set(self.nodes[0].getrawmempool()), set())
|
||||
for txid in spends1_id+spends2_id:
|
||||
|
||||
Reference in New Issue
Block a user