aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorJon Atack <jon@atack.com>2020-11-04 13:13:17 +0100
committerJon Atack <jon@atack.com>2020-11-11 15:55:59 +0100
commita0d495747320c79b27a83c216dcc526ac8df8f24 (patch)
tree1d662469632dc37850ff4b5bd9a9e04566f8e78a /src/util
parente21212f01b7c41eba13b0479b252053cf482bc1f (diff)
downloadbitcoin-a0d495747320c79b27a83c216dcc526ac8df8f24.tar.xz
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.cpp2
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;
}