Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/mining.cpp
Show First 20 Lines • Show All 792 Lines • ▼ Show 20 Lines | if (request.fHelp || request.params.size() != 1) { | ||||
"-1 is always returned for nblocks == 1 as it is impossible to " | "-1 is always returned for nblocks == 1 as it is impossible to " | ||||
"calculate\n" | "calculate\n" | ||||
"a fee that is high enough to get reliably included in the next " | "a fee that is high enough to get reliably included in the next " | ||||
"block.\n" | "block.\n" | ||||
"\nExample:\n" + | "\nExample:\n" + | ||||
HelpExampleCli("estimatefee", "6")); | HelpExampleCli("estimatefee", "6")); | ||||
} | } | ||||
if (!IsDeprecatedRPCEnabled("estimatefee")) { | if (!IsDeprecatedRPCEnabled(gArgs, "estimatefee")) { | ||||
throw JSONRPCError( | throw JSONRPCError( | ||||
RPC_METHOD_DEPRECATED, | RPC_METHOD_DEPRECATED, | ||||
"estimatefee is deprecated and will be fully removed in v0.17. " | "estimatefee is deprecated and will be fully removed in v0.17. " | ||||
"To use estimatefee in v0.16, restart bitcoind with " | "To use estimatefee in v0.16, restart bitcoind with " | ||||
"-deprecatedrpc=estimatefee.\n" | "-deprecatedrpc=estimatefee.\n" | ||||
"Projects should transition to using estimatesmartfee before " | "Projects should transition to using estimatesmartfee before " | ||||
"upgrading to v0.17"); | "upgrading to v0.17"); | ||||
} | } | ||||
Show All 36 Lines |