mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-08-08 23:22:44 +02:00
scripted-diff: Remove redundant sync_all and sync_blocks
The sync calls are redundant after a call to generate, because generate already syncs itself. -BEGIN VERIFY SCRIPT- perl -0777 -pi -e 's/(generate[^\n]*\)[^\n]*)(\n|\s)+self.sync_(all|blocks)\([^\)]*\)\n/\1\n/g' $(git grep -l generate ./test) -END VERIFY SCRIPT-
This commit is contained in:
@@ -112,7 +112,6 @@ class NotificationsTest(BitcoinTestFramework):
|
||||
self.log.info("test -walletnotify with conflicting transactions")
|
||||
self.nodes[0].rescanblockchain()
|
||||
self.generatetoaddress(self.nodes[0], 100, ADDRESS_BCRT1_UNSPENDABLE)
|
||||
self.sync_blocks()
|
||||
|
||||
# Generate transaction on node 0, sync mempools, and check for
|
||||
# notification on node 1.
|
||||
|
Reference in New Issue
Block a user