This commit is contained in:
Jack Robison 2021-09-27 19:27:20 -04:00
parent 86f21da28b
commit 11dcb16b14
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -17,13 +17,11 @@ class BasicTransactionTests(IntegrationTestCase):
# send 10 coins to first 10 receiving addresses and then 10 transactions worth 10 coins each # send 10 coins to first 10 receiving addresses and then 10 transactions worth 10 coins each
# to the 10th receiving address for a total of 30 UTXOs on the entire account # to the 10th receiving address for a total of 30 UTXOs on the entire account
sends = list(chain( for i in range(10):
((address, self.blockchain.send_to_address(address, 10)) for address in addresses[:10]), txid = await self.blockchain.send_to_address(addresses[i], 10)
((addresses[9], self.blockchain.send_to_address(addresses[9], 10)) for _ in range(10)) await self.wait_for_txid(txid, addresses[i])
)) txid = await self.blockchain.send_to_address(addresses[9], 10)
await self.wait_for_txid(txid, addresses[9])
await asyncio.wait([self.wait_for_txid(await tx, address) for (address, tx) in sends], timeout=1)
# use batching to reduce issues with send_to_address on cli # use batching to reduce issues with send_to_address on cli
await self.assertBalance(self.account, '200.0') await self.assertBalance(self.account, '200.0')