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

Function try_update_open_fees

plugins/bkpr/bookkeeper.c:533–549  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

531};
532
533static void try_update_open_fees(struct command *cmd,
534 struct account *acct)
535{
536 struct chain_event *ev;
537 char *err;
538
539 assert(acct->closed_event_db_id);
540 ev = find_chain_event_by_id(cmd, db, *acct->closed_event_db_id);
541 assert(ev);
542
543 err = maybe_update_onchain_fees(cmd, db, ev->spending_txid);
544 if (err)
545 plugin_err(cmd->plugin,
546 "failure updating chain fees:"
547 " %s", err);
548
549}
550
551static void find_push_amts(const char *buf,
552 const jsmntok_t *curr_chan,

Callers 1

Calls 3

find_chain_event_by_idFunction · 0.85
plugin_errFunction · 0.50

Tested by

no test coverage detected