diff options
author | Jon Atack <jon@atack.com> | 2020-11-04 13:13:17 +0100 |
---|---|---|
committer | Jon Atack <jon@atack.com> | 2020-11-11 15:55:59 +0100 |
commit | a0d495747320c79b27a83c216dcc526ac8df8f24 (patch) | |
tree | 1d662469632dc37850ff4b5bd9a9e04566f8e78a /src/util | |
parent | e21212f01b7c41eba13b0479b252053cf482bc1f (diff) |
wallet: introduce fee_rate (sat/vB) param/option
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 <murch@murch.one>
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/fees.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/util/fees.cpp b/src/util/fees.cpp index 6208a20a97..9a1cea1d4e 100644 --- a/src/util/fees.cpp +++ b/src/util/fees.cpp @@ -40,8 +40,6 @@ const std::vector<std::pair<std::string, FeeEstimateMode>>& FeeModeMap() {"unset", FeeEstimateMode::UNSET}, {"economical", FeeEstimateMode::ECONOMICAL}, {"conservative", FeeEstimateMode::CONSERVATIVE}, - {(CURRENCY_UNIT + "/kB"), FeeEstimateMode::BTC_KB}, - {(CURRENCY_ATOM + "/B"), FeeEstimateMode::SAT_B}, }; return FEE_MODES; } |