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

Function estimatefees_done

plugins/bcli.c:736–751  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

734}
735
736static struct command_result *estimatefees_done(struct bitcoin_cli *bcli)
737{
738 struct command_result *err;
739 struct estimatefees_stash *stash = bcli->stash;
740
741 /* If we cannot estimate fees, no need to continue bothering bitcoind. */
742 if (*bcli->exitstatus != 0)
743 return estimatefees_null_response(bcli);
744
745 err = estimatefees_parse_feerate(bcli, &stash->perkb[stash->cursor]);
746 if (err)
747 return err;
748
749 stash->cursor++;
750 return estimatefees_next(bcli->cmd, stash);
751}
752
753/* Send a transaction to the Bitcoin network.
754 * Calls `sendrawtransaction` using the first parameter as the raw tx.

Callers

nothing calls this directly

Calls 3

estimatefees_nextFunction · 0.85

Tested by

no test coverage detected