File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 101
101
if (len (opts ) == 0 or (len (opts ) == 1 and "-win" in opts ) or '-extended' in opts
102
102
or testScripts [i ] in opts or re .sub (".py$" , "" , testScripts [i ]) in opts ):
103
103
print "Running testscript " + testScripts [i ] + "..."
104
- subprocess .call (rpcTestDir + testScripts [i ] + " --srcdir " + buildDir + '/src ' + passOn ,shell = True )
104
+ subprocess .check_call (rpcTestDir + testScripts [i ] + " --srcdir " + buildDir + '/src ' + passOn ,shell = True )
105
105
#exit if help is called so we print just one set of instructions
106
106
p = re .compile (" -h| --help" )
107
107
if p .match (passOn ):
112
112
if ('-extended' in opts or testScriptsExt [i ] in opts
113
113
or re .sub (".py$" , "" , testScriptsExt [i ]) in opts ):
114
114
print "Running 2nd level testscript " + testScriptsExt [i ] + "..."
115
- subprocess .call (rpcTestDir + testScriptsExt [i ] + " --srcdir " + buildDir + '/src ' + passOn ,shell = True )
115
+ subprocess .check_call (rpcTestDir + testScriptsExt [i ] + " --srcdir " + buildDir + '/src ' + passOn ,shell = True )
116
116
else :
117
117
print "No rpc tests to run. Wallet, utils, and bitcoind must all be enabled"
Original file line number Diff line number Diff line change @@ -28,7 +28,15 @@ def setup_network(self, split=False):
28
28
29
29
def run_test (self ):
30
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
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
32
40
33
41
self .nodes [2 ].generate (1 )
34
42
self .sync_all ()
You can’t perform that action at this time.
0 commit comments