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

Function getutxout

plugins/bcli.c:793–811  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

791}
792
793static struct command_result *getutxout(struct command *cmd,
794 const char *buf,
795 const jsmntok_t *toks)
796{
797 const char *txid, *vout;
798
799 /* bitcoin-cli wants strings. */
800 if (!param(cmd, buf, toks,
801 p_req("txid", param_string, &txid),
802 p_req("vout", param_string, &vout),
803 NULL))
804 return command_param_failed();
805
806 start_bitcoin_cli(NULL, cmd, process_getutxout, true,
807 BITCOIND_HIGH_PRIO, NULL,
808 "gettxout", txid, vout, NULL);
809
810 return command_still_pending(cmd);
811}
812
813static void bitcoind_failure(struct plugin *p, const char *error_message)
814{

Callers

nothing calls this directly

Calls 4

start_bitcoin_cliFunction · 0.85
command_param_failedFunction · 0.70
command_still_pendingFunction · 0.70
paramFunction · 0.50

Tested by

no test coverage detected