diff options
author | Sebastian Falbesoner <sebastian.falbesoner@gmail.com> | 2021-12-06 23:36:31 +0100 |
---|---|---|
committer | Sebastian Falbesoner <sebastian.falbesoner@gmail.com> | 2021-12-06 23:36:31 +0100 |
commit | 0ba98eda28053749f06928187e8dafbfd34faaf0 (patch) | |
tree | 08a6bb0276ce1e8971cba9756902e9920b2412ca | |
parent | 786ffb3ae488061e13c02ad3fb34a5d2fc785b3d (diff) |
test: remove unneeded sync_all() calls in wallet_listtransactions.py
-rwxr-xr-x | test/functional/wallet_listtransactions.py | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/test/functional/wallet_listtransactions.py b/test/functional/wallet_listtransactions.py index fc263f17ce..1b29d163c2 100755 --- a/test/functional/wallet_listtransactions.py +++ b/test/functional/wallet_listtransactions.py @@ -4,10 +4,9 @@ # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the listtransactions API.""" -import shutil -import os - from decimal import Decimal +import os +import shutil from test_framework.messages import ( COIN, @@ -19,6 +18,7 @@ from test_framework.util import ( assert_equal, ) + class ListTransactionsTest(BitcoinTestFramework): def set_test_params(self): self.num_nodes = 3 @@ -245,17 +245,14 @@ class ListTransactionsTest(BitcoinTestFramework): # send to an address beyond the next to be generated to test the keypool gap self.nodes[1].sendtoaddress(addr3, "0.001") self.generate(self.nodes[1], 1) - self.sync_all() # send to an address that is already marked as used due to the keypool gap mechanics self.nodes[1].sendtoaddress(addr2, "0.001") self.generate(self.nodes[1], 1) - self.sync_all() # send to self transaction self.nodes[0].sendtoaddress(addr1, "0.001") self.generate(self.nodes[0], 1) - self.sync_all() self.log.info("Verify listtransactions is the same regardless of where the address was generated") transactions0 = self.nodes[0].listtransactions() @@ -273,7 +270,7 @@ class ListTransactionsTest(BitcoinTestFramework): normalize_list(transactions2) assert_equal(transactions0, transactions2) - self.log.info("Verify labels are persistent on the node generated the addresses") + self.log.info("Verify labels are persistent on the node that generated the addresses") assert_equal(['pizza1'], self.nodes[0].getaddressinfo(addr1)['labels']) assert_equal(['pizza2'], self.nodes[0].getaddressinfo(addr2)['labels']) assert_equal(['pizza3'], self.nodes[0].getaddressinfo(addr3)['labels']) |