File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,11 @@ def run_test(self):
30
30
print "Mining blocks..."
31
31
32
32
min_relay_tx_fee = self .nodes [0 ].getnetworkinfo ()['relayfee' ]
33
+ # This test is not meant to test fee estimation and we'd like
34
+ # to be sure all txs are sent at a consistent desired feerate
35
+ for node in self .nodes :
36
+ node .settxfee (min_relay_tx_fee )
37
+
33
38
# if the fee's positive delta is higher than this value tests will fail,
34
39
# neg. delta always fail the tests.
35
40
# The size of the signature of every input may be at most 2 bytes larger
@@ -447,6 +452,10 @@ def run_test(self):
447
452
wait_bitcoinds ()
448
453
449
454
self .nodes = start_nodes (4 , self .options .tmpdir )
455
+ # This test is not meant to test fee estimation and we'd like
456
+ # to be sure all txs are sent at a consistent desired feerate
457
+ for node in self .nodes :
458
+ node .settxfee (min_relay_tx_fee )
450
459
451
460
connect_nodes_bi (self .nodes ,0 ,1 )
452
461
connect_nodes_bi (self .nodes ,1 ,2 )
Original file line number Diff line number Diff line change @@ -33,7 +33,9 @@ def run_test(self):
33
33
inputs = [{ "txid" : us0 ["txid" ], "vout" : us0 ["vout" ]}]
34
34
outputs = {self .nodes [0 ].getnewaddress () : 0.0001 }
35
35
tx = self .nodes [0 ].createrawtransaction (inputs , outputs )
36
+ self .nodes [0 ].settxfee (self .relayfee ) # specifically fund this tx with low fee
36
37
txF = self .nodes [0 ].fundrawtransaction (tx )
38
+ self .nodes [0 ].settxfee (0 ) # return to automatic fee selection
37
39
txFS = self .nodes [0 ].signrawtransaction (txF ['hex' ])
38
40
txid = self .nodes [0 ].sendrawtransaction (txFS ['hex' ])
39
41
self .nodes [0 ].lockunspent (True , [us0 ])
You can’t perform that action at this time.
0 commit comments