Fix the issue with transaction amount precision in IS tests (#2353)
* fix issue with trx amounts precision in autoix-mempool.py * fix issue with trx amounts precision in p2p-autoinstantsend.py * fix issue with trx amounts precision in p2p-instantsend.py * Rallback adding empty line * Rallback adding empty line
This commit is contained in:
parent
90ad75911a
commit
81d60bc283
@ -228,8 +228,8 @@ class AutoIXMempoolTest(BitcoinTestFramework):
|
||||
change_address = node_from.getnewaddress()
|
||||
fee = 0.001
|
||||
outputs={}
|
||||
outputs[receiver_address] = amount
|
||||
outputs[change_address] = in_amount - amount - fee
|
||||
outputs[receiver_address] = satoshi_round(amount)
|
||||
outputs[change_address] = satoshi_round(in_amount - amount - fee)
|
||||
rawtx = node_from.createrawtransaction(inputs, outputs)
|
||||
return node_from.signrawtransaction(rawtx)
|
||||
|
||||
|
@ -239,8 +239,8 @@ class AutoInstantSendTest(BitcoinTestFramework):
|
||||
change_address = node_from.getnewaddress()
|
||||
fee = 0.001
|
||||
outputs={}
|
||||
outputs[receiver_address] = amount
|
||||
outputs[change_address] = in_amount - amount - fee
|
||||
outputs[receiver_address] = satoshi_round(amount)
|
||||
outputs[change_address] = satoshi_round(in_amount - amount - fee)
|
||||
rawtx = node_from.createrawtransaction(inputs, outputs)
|
||||
return node_from.signrawtransaction(rawtx)
|
||||
|
||||
|
@ -140,8 +140,8 @@ class InstantSendTest(BitcoinTestFramework):
|
||||
change_address = node_from.getnewaddress()
|
||||
fee = 0.001
|
||||
outputs={}
|
||||
outputs[receiver_address] = amount
|
||||
outputs[change_address] = in_amount - amount - fee
|
||||
outputs[receiver_address] = satoshi_round(amount)
|
||||
outputs[change_address] = satoshi_round(in_amount - amount - fee)
|
||||
rawtx = node_from.createrawtransaction(inputs, outputs)
|
||||
return node_from.signrawtransaction(rawtx)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user