We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1d623d commit 0d8b175Copy full SHA for 0d8b175
qa/rpc-tests/fundrawtransaction.py
@@ -28,7 +28,15 @@ def setup_network(self, split=False):
28
29
def run_test(self):
30
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
+
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
40
41
self.nodes[2].generate(1)
42
self.sync_all()
0 commit comments