diff options
author | Alex Morcos <morcos@chaincode.com> | 2016-01-05 13:10:19 -0500 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2016-01-13 11:06:17 +0100 |
commit | a36d79bfe247e7fc5c6296fd8603f5094edfe558 (patch) | |
tree | 38cbbf772fc86c0d28cfe43b4ed2832a1243b9ba /qa/rpc-tests/mempool_limit.py | |
parent | 8f25d6eb0e0a4c1a369878808fb041283617081c (diff) | |
download | bitcoin-a36d79bfe247e7fc5c6296fd8603f5094edfe558.tar.xz |
Add sane fallback for fee estimation
- Always respect GetRequiredFee for wallet txs
- Add sane fallback for fee estimation
- SQUASHME: Fix rpc tests that assumed fallback to minRelayTxFee
Add new commandline option "-fallbackfee" to use when fee estimation does not have sufficient data.
Github-Pull: #7296
Rebased-From: 995b9f3 e420a1b bebe58b
Diffstat (limited to 'qa/rpc-tests/mempool_limit.py')
-rwxr-xr-x | qa/rpc-tests/mempool_limit.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qa/rpc-tests/mempool_limit.py b/qa/rpc-tests/mempool_limit.py index 3ba17ac4f1..a8cf6360ee 100755 --- a/qa/rpc-tests/mempool_limit.py +++ b/qa/rpc-tests/mempool_limit.py @@ -33,7 +33,9 @@ class MempoolLimitTest(BitcoinTestFramework): inputs = [{ "txid" : us0["txid"], "vout" : us0["vout"]}] outputs = {self.nodes[0].getnewaddress() : 0.0001} tx = self.nodes[0].createrawtransaction(inputs, outputs) + self.nodes[0].settxfee(self.relayfee) # specifically fund this tx with low fee txF = self.nodes[0].fundrawtransaction(tx) + self.nodes[0].settxfee(0) # return to automatic fee selection txFS = self.nodes[0].signrawtransaction(txF['hex']) txid = self.nodes[0].sendrawtransaction(txFS['hex']) self.nodes[0].lockunspent(True, [us0]) |