Skip to content

Commit 47915b1

Browse files
committed
test: remove unneeded/redundant code in wallet_listtransactions
-> remove unneeded get-out-of IBD generate() (The test framework already sets up the nodes to be out of IBD in setup_nodes(), if setup_clean_chain is not set to True) -> remove duplicate code line assigning an utxo
1 parent fb6c6a7 commit 47915b1

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

test/functional/wallet_listtransactions.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ def skip_test_if_missing_module(self):
2626
self.skip_if_no_wallet()
2727

2828
def run_test(self):
29-
self.nodes[0].generate(1) # Get out of IBD
30-
self.sync_all()
3129
# Simple send, 0 to 1:
3230
txid = self.nodes[0].sendtoaddress(self.nodes[1].getnewaddress(), 0.1)
3331
self.sync_all()
@@ -136,7 +134,6 @@ def get_unconfirmed_utxo_entry(node, txid_to_match):
136134
utxo_to_use = get_unconfirmed_utxo_entry(self.nodes[0], txid_1)
137135
assert_equal(utxo_to_use["safe"], True)
138136
utxo_to_use = get_unconfirmed_utxo_entry(self.nodes[1], txid_1)
139-
utxo_to_use = get_unconfirmed_utxo_entry(self.nodes[1], txid_1)
140137
assert_equal(utxo_to_use["safe"], False)
141138

142139
# Create tx2 using createrawtransaction

0 commit comments

Comments
 (0)