mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-08-03 16:52:26 +02:00
test: use sendall
when emptying wallet
This commit is contained in:
@@ -587,7 +587,7 @@ class WalletTest(BitcoinTestFramework):
|
||||
|
||||
# Get all non-zero utxos together
|
||||
chain_addrs = [self.nodes[0].getnewaddress(), self.nodes[0].getnewaddress()]
|
||||
singletxid = self.nodes[0].sendtoaddress(chain_addrs[0], self.nodes[0].getbalance(), "", "", True)
|
||||
singletxid = self.nodes[0].sendall(recipients=[chain_addrs[0]])['txid']
|
||||
self.generate(self.nodes[0], 1, sync_fun=self.no_op)
|
||||
node0_balance = self.nodes[0].getbalance()
|
||||
# Split into two chains
|
||||
|
Reference in New Issue
Block a user