From fa974f1f1417a536636347072e86bcb54a4c909c Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Wed, 28 Jul 2021 12:12:50 +0200 Subject: 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- --- test/functional/wallet_basic.py | 1 - 1 file changed, 1 deletion(-) (limited to 'test/functional/wallet_basic.py') diff --git a/test/functional/wallet_basic.py b/test/functional/wallet_basic.py index 3839360eda..916744c853 100755 --- a/test/functional/wallet_basic.py +++ b/test/functional/wallet_basic.py @@ -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 -- cgit v1.2.3