diff options
| author | Pieter Wuille <[email protected]> | 2015-03-31 20:28:28 -0700 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2015-04-01 11:47:10 -0700 |
| commit | 6b04508e37c5dd18cec1cd61cc4356bd208aa991 (patch) | |
| tree | e3a5ac58ed8e891e55638af98db9b33257db57f3 /qa/rpc-tests/txn_doublespend.py | |
| parent | Simplify hash loop code (diff) | |
| download | discoin-6b04508e37c5dd18cec1cd61cc4356bd208aa991.tar.xz discoin-6b04508e37c5dd18cec1cd61cc4356bd208aa991.zip | |
Introduce separate 'generate' RPC call
Diffstat (limited to 'qa/rpc-tests/txn_doublespend.py')
| -rwxr-xr-x | qa/rpc-tests/txn_doublespend.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/qa/rpc-tests/txn_doublespend.py b/qa/rpc-tests/txn_doublespend.py index 942d9fc66..fe9168944 100755 --- a/qa/rpc-tests/txn_doublespend.py +++ b/qa/rpc-tests/txn_doublespend.py @@ -58,7 +58,7 @@ class TxnMallTest(BitcoinTestFramework): # Have node0 mine a block: if (self.options.mine_block): - self.nodes[0].setgenerate(True, 1) + self.nodes[0].generate(1) sync_blocks(self.nodes[0:2]) tx1 = self.nodes[0].gettransaction(txid1) @@ -88,11 +88,11 @@ class TxnMallTest(BitcoinTestFramework): # Now give doublespend to miner: mutated_txid = self.nodes[2].sendrawtransaction(doublespend["hex"]) # ... mine a block... - self.nodes[2].setgenerate(True, 1) + self.nodes[2].generate(1) # Reconnect the split network, and sync chain: connect_nodes(self.nodes[1], 2) - self.nodes[2].setgenerate(True, 1) # Mine another block to make sure we sync + self.nodes[2].generate(1) # Mine another block to make sure we sync sync_blocks(self.nodes) # Re-fetch transaction info: |