diff options
author | MarcoFalke <falke.marco@gmail.com> | 2015-10-14 14:27:03 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2015-10-20 10:25:45 +0200 |
commit | 0d8b1759d21ac8db02627553d4b9c63d859bb0a5 (patch) | |
tree | 735b4e3c306ceff8bfe0d71a0f69a64b033a24fe /qa/rpc-tests | |
parent | a1d623da3ea4c73605d27703bc966ed8109d231e (diff) |
[rpc-tests] fundrawtransaction: Update fee after minRelayTxFee increase
Diffstat (limited to 'qa/rpc-tests')
-rwxr-xr-x | qa/rpc-tests/fundrawtransaction.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/qa/rpc-tests/fundrawtransaction.py b/qa/rpc-tests/fundrawtransaction.py index fc29789218..93d13faa06 100755 --- a/qa/rpc-tests/fundrawtransaction.py +++ b/qa/rpc-tests/fundrawtransaction.py @@ -28,7 +28,15 @@ class RawTransactionsTest(BitcoinTestFramework): def run_test(self): print "Mining blocks..." - feeTolerance = Decimal(0.00000002) #if the fee's positive delta is higher than this value tests will fail, neg. delta always fail the tests + + min_relay_tx_fee = self.nodes[0].getnetworkinfo()['relayfee'] + # if the fee's positive delta is higher than this value tests will fail, + # neg. delta always fail the tests. + # The size of the signature of every input may be at most 2 bytes larger + # than a minimum sized signature. + + # = 2 bytes * minRelayTxFeePerByte + feeTolerance = 2 * min_relay_tx_fee/1000 self.nodes[2].generate(1) self.sync_all() |