Clearing up some fee calc confusion in mempool_limit.py
@@ -27,12 +27,27 @@ class MempoolLimitTest(RavenTestFramework):
inputs = [{ "txid" : us0["txid"], "vout" : us0["vout"]}]
outputs = {self.nodes[0].getnewaddress() : 0.0001}
tx = self.nodes[0].createrawtransaction(inputs, outputs)
- txF = self.nodes[0].fundrawtransaction(tx, {"feeRate": relayfee}) # specifically fund this tx with low fee
+
+ # Any fee calc method should work as longs as base_fee is set proportionally...
+
+ #1
+ txF = self.nodes[0].fundrawtransaction(tx)
+ base_fee = satoshi_round(0.00075*100) # DEFAULT_FALLBACK_FEE (settxfee(0) is default and falls through to this)
+
+ #2
+ # self.nodes[0].settxfee(relayfee) # specifically fund this tx with low fee (this is too low and will be bumped to MINFEE)
+ # txF = self.nodes[0].fundrawtransaction(tx)
+ # base_fee = satoshi_round(0.0005*100) # DEFAULT_TRANSACTION_MINFEE
+ # self.nodes[0].settxfee(0) # return to automatic fee selection
+
+ #3
+ # txF = self.nodes[0].fundrawtransaction(tx, {"feeRate": relayfee})
+ # relayfee = self.nodes[0].getnetworkinfo()['relayfee']
+ # base_fee = relayfee*100
+
txFS = self.nodes[0].signrawtransaction(txF['hex'])
txid = self.nodes[0].sendrawtransaction(txFS['hex'])
- relayfee = self.nodes[0].getnetworkinfo()['relayfee']
- base_fee = relayfee*100
for i in range (self.thirtyTransactions):
txids.append([])
txids[i] = create_lots_of_big_transactions(self.nodes[0], txouts, utxos[30*i:30*i+30], 30, (i+1)*base_fee)
