Skip to content

Commit 0d8b175

Browse files
author
MarcoFalke
committed
[rpc-tests] fundrawtransaction: Update fee after minRelayTxFee increase
1 parent a1d623d commit 0d8b175

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

qa/rpc-tests/fundrawtransaction.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,15 @@ def setup_network(self, split=False):
2828

2929
def run_test(self):
3030
print "Mining blocks..."
31-
feeTolerance = Decimal(0.00000002) #if the fee's positive delta is higher than this value tests will fail, neg. delta always fail the tests
31+
32+
min_relay_tx_fee = self.nodes[0].getnetworkinfo()['relayfee']
33+
# if the fee's positive delta is higher than this value tests will fail,
34+
# neg. delta always fail the tests.
35+
# The size of the signature of every input may be at most 2 bytes larger
36+
# than a minimum sized signature.
37+
38+
# = 2 bytes * minRelayTxFeePerByte
39+
feeTolerance = 2 * min_relay_tx_fee/1000
3240

3341
self.nodes[2].generate(1)
3442
self.sync_all()

0 commit comments

Comments
 (0)