aboutsummaryrefslogtreecommitdiff
path: root/src/util/fees.cpp
Commit message (Collapse)AuthorAgeFilesLines
* wallet: provide valid values if invalid estimate mode passedJon Atack2020-11-121-0/+5
| | | | Co-authored-by: Murch <[email protected]>
* wallet: introduce fee_rate (sat/vB) param/optionJon Atack2020-11-111-2/+0
| | | | | | | | | | | | | | | | | | | | | | Create a fee_rate (sat/vB) RPC param and replace overloading the conf_target and estimate_mode params in the following 6 RPCs with it: - sendtoaddress - sendmany - send - fundrawtransaction - walletcreatefundedpsbt - bumpfee In RPC bumpfee, the previously existing fee_rate remains but the unit is changed from BTC/kvB to sat/vB. This is a breaking change, but it should not be an overly risky one, as the units change by a factor of 1e5 and any fees specified in BTC/kvB after this commit will either be too low and raise an error or be 1 sat/vB and can be RBFed. Update the test coverage for each RPC. Co-authored-by: Murch <[email protected]>
* rpc/wallet: add two explicit modes to estimate_modeKarl-Johan Alm2020-06-241-0/+2
|
* fees: add FeeModes doc helper functionKarl-Johan Alm2020-06-241-10/+28
|
* scripted-diff: Bump copyright of files changed in 2019MarcoFalke2019-12-301-1/+1
| | | | | | -BEGIN VERIFY SCRIPT- ./contrib/devtools/copyright_header.py update ./ -END VERIFY SCRIPT-
* util: Add missing headers to util/fees.cppHennadii Stepanov2019-11-121-0/+3
|
* [wallet] abort when attempting to fund a transaction above maxtxfeeSjors Provoost2019-06-281-1/+0
| | | | FundTransaction calls GetMinimumFee which, when the fee rate is absurdly high, quietly reduced the fee to -maxtxfee. Becaue an absurdly high fee rate is usually the result of a fat finger, aborting seems safer behavior.
* [build] Add several util unitsJohn Newbery2019-04-091-0/+42
Adds the following util units and adds them to libbitcoin_util: - `util/url.cpp` takes `urlDecode` from `httpserver.cpp` - `util/error.cpp` takes `TransactionErrorString` from `node/transaction.cpp` and `AmountHighWarn` and `AmountErrMsg` from `ui_interface.cpp` - `util/fees.cpp` takes `StringForFeeReason` and `FeeModeFromString` from `policy/fees.cpp` - `util/rbf.cpp` takes `SignalsOptInRBF` from `policy/rbf.cpp` - 'util/validation.cpp` takes `FormatStateMessage` and `strMessageMagic` from 'validation.cpp`