Skip to content

Commit e95eca7

Browse files
committed
fixup! Rewrite estimateSmartFee
1 parent 8ddf28a commit e95eca7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/rpc/mining.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -831,14 +831,17 @@ UniValue estimatesmartfee(const JSONRPCRequest& request)
831831
{
832832
if (request.fHelp || request.params.size() < 1 || request.params.size() > 2)
833833
throw std::runtime_error(
834-
"estimatesmartfee nblocks\n"
834+
"estimatesmartfee nblocks (conservative)\n"
835835
"\nEstimates the approximate fee per kilobyte needed for a transaction to begin\n"
836836
"confirmation within nblocks blocks if possible and return the number of blocks\n"
837837
"for which the estimate is valid. Uses virtual transaction size as defined\n"
838838
"in BIP 141 (witness data is discounted).\n"
839839
"\nArguments:\n"
840840
"1. nblocks (numeric)\n"
841-
"2. conservative (bool, optional, default=true) Whether to return a more conservative estimate calculated from a longer history\n"
841+
"2. conservative (bool, optional, default=true) Whether to return a more conservative estimate which\n"
842+
" also satisfies a longer history. A conservative estimate potentially returns a higher\n"
843+
" feerate and is more likely to be sufficient for the desired target, but is not as\n"
844+
" responsive to short term drops in the prevailing fee market\n"
842845
"\nResult:\n"
843846
"{\n"
844847
" \"feerate\" : x.x, (numeric) estimate fee-per-kilobyte (in BTC)\n"

0 commit comments

Comments
 (0)