MCPcopy Create free account
hub / github.com/ElementsProject/lightning / estimatefees

Function estimatefees

plugins/bcli.c:723–734  ·  view source on GitHub ↗

Get the current feerates. We use an urgent feerate for unilateral_close and max, * a slightly less urgent feerate for htlc_resolution and penalty transactions, * a slow feerate for min, and a normal one for all others. */

Source from the content-addressed store, hash-verified

721 * a slow feerate for min, and a normal one for all others.
722 */
723static struct command_result *estimatefees(struct command *cmd,
724 const char *buf UNUSED,
725 const jsmntok_t *toks UNUSED)
726{
727 struct estimatefees_stash *stash = tal(cmd, struct estimatefees_stash);
728
729 if (!param(cmd, buf, toks, NULL))
730 return command_param_failed();
731
732 stash->cursor = 0;
733 return estimatefees_next(cmd, stash);
734}
735
736static struct command_result *estimatefees_done(struct bitcoin_cli *bcli)
737{

Callers

nothing calls this directly

Calls 3

estimatefees_nextFunction · 0.85
command_param_failedFunction · 0.70
paramFunction · 0.50

Tested by

no test coverage detected