mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-08-23 22:02:40 +02:00
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
This commit is contained in:
@@ -26,8 +26,6 @@ class ListTransactionsTest(BitcoinTestFramework):
|
||||
self.skip_if_no_wallet()
|
||||
|
||||
def run_test(self):
|
||||
self.nodes[0].generate(1) # Get out of IBD
|
||||
self.sync_all()
|
||||
# Simple send, 0 to 1:
|
||||
txid = self.nodes[0].sendtoaddress(self.nodes[1].getnewaddress(), 0.1)
|
||||
self.sync_all()
|
||||
@@ -136,7 +134,6 @@ class ListTransactionsTest(BitcoinTestFramework):
|
||||
utxo_to_use = get_unconfirmed_utxo_entry(self.nodes[0], txid_1)
|
||||
assert_equal(utxo_to_use["safe"], True)
|
||||
utxo_to_use = get_unconfirmed_utxo_entry(self.nodes[1], txid_1)
|
||||
utxo_to_use = get_unconfirmed_utxo_entry(self.nodes[1], txid_1)
|
||||
assert_equal(utxo_to_use["safe"], False)
|
||||
|
||||
# Create tx2 using createrawtransaction
|
||||
|
Reference in New Issue
Block a user