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:
gladcow 2018-10-18 16:24:30 +03:00 committed by UdjinM6
parent 90ad75911a
commit 81d60bc283
3 changed files with 6 additions and 6 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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)