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/forknotify.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/forknotify.py')
| -rwxr-xr-x | qa/rpc-tests/forknotify.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/qa/rpc-tests/forknotify.py b/qa/rpc-tests/forknotify.py index ad2a748ca..af22ffb1a 100755 --- a/qa/rpc-tests/forknotify.py +++ b/qa/rpc-tests/forknotify.py @@ -34,12 +34,12 @@ class ForkNotifyTest(BitcoinTestFramework): def run_test(self): # Mine 51 up-version blocks - self.nodes[1].setgenerate(True, 51) + self.nodes[1].generate(51) self.sync_all() # -alertnotify should trigger on the 51'st, # but mine and sync another to give # -alertnotify time to write - self.nodes[1].setgenerate(True, 1) + self.nodes[1].generate(1) self.sync_all() with open(self.alert_filename, 'r') as f: @@ -49,9 +49,9 @@ class ForkNotifyTest(BitcoinTestFramework): raise AssertionError("-alertnotify did not warn of up-version blocks") # Mine more up-version blocks, should not get more alerts: - self.nodes[1].setgenerate(True, 1) + self.nodes[1].generate(1) self.sync_all() - self.nodes[1].setgenerate(True, 1) + self.nodes[1].generate(1) self.sync_all() with open(self.alert_filename, 'r') as f: |