test: Fix intermittent issue in wallet_listsinceblock

pull/764/head
MarcoFalke 4 years ago
parent f5cdc290d5
commit 444412821e
No known key found for this signature in database
GPG Key ID: CE2B75697E69A548

@ -191,6 +191,7 @@ class ListSinceBlockTest(BitcoinTestFramework):
address = key_to_p2wpkh(eckey.get_pubkey().get_bytes()) address = key_to_p2wpkh(eckey.get_pubkey().get_bytes())
self.nodes[2].sendtoaddress(address, 10) self.nodes[2].sendtoaddress(address, 10)
self.nodes[2].generate(6) self.nodes[2].generate(6)
self.sync_all()
self.nodes[2].importprivkey(privkey) self.nodes[2].importprivkey(privkey)
utxos = self.nodes[2].listunspent() utxos = self.nodes[2].listunspent()
utxo = [u for u in utxos if u["address"] == address][0] utxo = [u for u in utxos if u["address"] == address][0]

Loading…
Cancel
Save