diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2015-03-31 20:28:28 -0700 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2015-04-01 11:47:10 -0700 |
commit | 6b04508e37c5dd18cec1cd61cc4356bd208aa991 (patch) | |
tree | e3a5ac58ed8e891e55638af98db9b33257db57f3 /qa/rpc-tests/walletbackup.py | |
parent | 0df67f1f7ab4adfe9f0b3ba6276e737b37826464 (diff) |
Introduce separate 'generate' RPC call
Diffstat (limited to 'qa/rpc-tests/walletbackup.py')
-rwxr-xr-x | qa/rpc-tests/walletbackup.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/qa/rpc-tests/walletbackup.py b/qa/rpc-tests/walletbackup.py index 049697c2db..b9fc862234 100755 --- a/qa/rpc-tests/walletbackup.py +++ b/qa/rpc-tests/walletbackup.py @@ -77,7 +77,7 @@ class WalletBackupTest(BitcoinTestFramework): # Have the miner (node3) mine a block. # Must sync mempools before mining. sync_mempools(self.nodes) - self.nodes[3].setgenerate(True, 1) + self.nodes[3].generate(1) # As above, this mirrors the original bash test. def start_three(self): @@ -101,13 +101,13 @@ class WalletBackupTest(BitcoinTestFramework): def run_test(self): logging.info("Generating initial blockchain") - self.nodes[0].setgenerate(True, 1) + self.nodes[0].generate(1) sync_blocks(self.nodes) - self.nodes[1].setgenerate(True, 1) + self.nodes[1].generate(1) sync_blocks(self.nodes) - self.nodes[2].setgenerate(True, 1) + self.nodes[2].generate(1) sync_blocks(self.nodes) - self.nodes[3].setgenerate(True, 100) + self.nodes[3].generate(100) sync_blocks(self.nodes) assert_equal(self.nodes[0].getbalance(), 50) @@ -134,7 +134,7 @@ class WalletBackupTest(BitcoinTestFramework): self.do_one_round() # Generate 101 more blocks, so any fees paid mature - self.nodes[3].setgenerate(True, 101) + self.nodes[3].generate(101) self.sync_all() balance0 = self.nodes[0].getbalance() |