mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-07-28 10:02:41 +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:
@@ -111,7 +111,6 @@ class WalletMultisigDescriptorPSBTTest(BitcoinTestFramework):
|
||||
self.log.info("Send funds to the resulting multisig receiving address...")
|
||||
coordinator_wallet.sendtoaddress(multisig_receiving_address, deposit_amount)
|
||||
self.generate(self.nodes[0], 1)
|
||||
self.sync_all()
|
||||
for participant in participants["multisigs"]:
|
||||
assert_approx(participant.getbalance(), deposit_amount, vspan=0.001)
|
||||
|
||||
@@ -137,7 +136,6 @@ class WalletMultisigDescriptorPSBTTest(BitcoinTestFramework):
|
||||
|
||||
self.log.info("Check that balances are correct after the transaction has been included in a block.")
|
||||
self.generate(self.nodes[0], 1)
|
||||
self.sync_all()
|
||||
assert_approx(participants["multisigs"][0].getbalance(), deposit_amount - value, vspan=0.001)
|
||||
assert_equal(participants["signers"][self.N - 1].getbalance(), value)
|
||||
|
||||
@@ -154,7 +152,6 @@ class WalletMultisigDescriptorPSBTTest(BitcoinTestFramework):
|
||||
|
||||
self.log.info("Check that balances are correct after the transaction has been included in a block.")
|
||||
self.generate(self.nodes[0], 1)
|
||||
self.sync_all()
|
||||
assert_approx(participants["multisigs"][0].getbalance(), deposit_amount - (value * 2), vspan=0.001)
|
||||
assert_equal(participants["signers"][self.N - 1].getbalance(), value * 2)
|
||||
|
||||
|
Reference in New Issue
Block a user