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

Function param_feerate

lightningd/feerate.c:116–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116struct command_result *param_feerate(struct command *cmd, const char *name,
117 const char *buffer, const jsmntok_t *tok,
118 u32 **feerate)
119{
120 struct command_result *ret;
121
122 ret = param_feerate_unchecked(cmd, name, buffer, tok, feerate);
123 if (ret)
124 return ret;
125
126 if (**feerate == 0)
127 return command_fail(cmd, BCLI_NO_FEE_ESTIMATES,
128 "Cannot estimate fees (yet)");
129
130 return NULL;
131}
132
133struct command_result *param_feerate_val(struct command *cmd,
134 const char *name, const char *buffer,

Callers 1

param_feerate_rangeFunction · 0.85

Calls 2

param_feerate_uncheckedFunction · 0.85
command_failFunction · 0.70

Tested by

no test coverage detected