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 101101 if (len (opts ) == 0 or (len (opts ) == 1 and "-win" in opts ) or '-extended' in opts
102102 or testScripts [i ] in opts or re .sub (".py$" , "" , testScripts [i ]) in opts ):
103103 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 )
105105 #exit if help is called so we print just one set of instructions
106106 p = re .compile (" -h| --help" )
107107 if p .match (passOn ):
112112 if ('-extended' in opts or testScriptsExt [i ] in opts
113113 or re .sub (".py$" , "" , testScriptsExt [i ]) in opts ):
114114 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 )
116116else :
117117 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):
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 ()
You can’t perform that action at this time.
0 commit comments