mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
Merge 45f434f44d into merged_master (Bitcoin PR #15288)
This commit is contained in:
commit
edfdf46351
21 changed files with 302 additions and 160 deletions
|
|
@ -855,7 +855,8 @@ static UniValue estimatesmartfee(const JSONRPCRequest& request)
|
|||
|
||||
RPCTypeCheck(request.params, {UniValue::VNUM, UniValue::VSTR});
|
||||
RPCTypeCheckArgument(request.params[0], UniValue::VNUM);
|
||||
unsigned int conf_target = ParseConfirmTarget(request.params[0]);
|
||||
unsigned int max_target = ::feeEstimator.HighestTargetTracked(FeeEstimateHorizon::LONG_HALFLIFE);
|
||||
unsigned int conf_target = ParseConfirmTarget(request.params[0], max_target);
|
||||
bool conservative = true;
|
||||
if (!request.params[1].isNull()) {
|
||||
FeeEstimateMode fee_mode;
|
||||
|
|
@ -927,7 +928,8 @@ static UniValue estimaterawfee(const JSONRPCRequest& request)
|
|||
|
||||
RPCTypeCheck(request.params, {UniValue::VNUM, UniValue::VNUM}, true);
|
||||
RPCTypeCheckArgument(request.params[0], UniValue::VNUM);
|
||||
unsigned int conf_target = ParseConfirmTarget(request.params[0]);
|
||||
unsigned int max_target = ::feeEstimator.HighestTargetTracked(FeeEstimateHorizon::LONG_HALFLIFE);
|
||||
unsigned int conf_target = ParseConfirmTarget(request.params[0], max_target);
|
||||
double threshold = 0.95;
|
||||
if (!request.params[1].isNull()) {
|
||||
threshold = request.params[1].get_real();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue