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

Function bitcoind_estimate_fees_

lightningd/bitcoind.c:294–315  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

292}
293
294void bitcoind_estimate_fees_(const tal_t *ctx,
295 struct bitcoind *bitcoind,
296 void (*cb)(struct lightningd *ld,
297 u32 feerate_floor,
298 const struct feerate_est *feerates,
299 void *arg),
300 void *cb_arg)
301{
302 struct jsonrpc_request *req;
303 struct estimatefee_call *call = tal(ctx, struct estimatefee_call);
304
305 call->bitcoind = bitcoind;
306 call->cb = cb;
307 call->cb_arg = cb_arg;
308
309 req = jsonrpc_request_start(call, "estimatefees", NULL,
310 bitcoind->log,
311 NULL, estimatefees_callback, call);
312 jsonrpc_request_end(req);
313 plugin_request_send(strmap_get(&bitcoind->pluginsmap,
314 "estimatefees"), req);
315}
316
317/* `sendrawtransaction`
318 *

Callers

nothing calls this directly

Calls 2

jsonrpc_request_endFunction · 0.70
plugin_request_sendFunction · 0.70

Tested by

no test coverage detected