mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 06:28:31 +01:00
Introduce separate 'generate' RPC call
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user