mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-08-04 01:02:48 +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:
@@ -342,7 +342,6 @@ class WalletTest(BitcoinTestFramework):
|
||||
|
||||
self.sync_all()
|
||||
self.generate(self.nodes[1], 1) # mine a block
|
||||
self.sync_all()
|
||||
|
||||
unspent_txs = self.nodes[0].listunspent() # zero value tx must be in listunspents output
|
||||
found = False
|
||||
|
Reference in New Issue
Block a user