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

Function handle_check_outpoint

hsmd/libhsmd.c:422–435  ·  view source on GitHub ↗

~This stub implementation is overriden by fully validating signers * to ensure they are caught up when outpoints are freshly buried */

Source from the content-addressed store, hash-verified

420/* ~This stub implementation is overriden by fully validating signers
421 * to ensure they are caught up when outpoints are freshly buried */
422static u8 *handle_check_outpoint(struct hsmd_client *c, const u8 *msg_in)
423{
424 struct bitcoin_txid funding_txid;
425 u16 funding_txout;
426 bool is_buried;
427
428 if (!fromwire_hsmd_check_outpoint(msg_in, &funding_txid, &funding_txout))
429 return hsmd_status_malformed_request(c, msg_in);
430
431 /* This stub always approves */
432 is_buried = true;
433
434 return towire_hsmd_check_outpoint_reply(NULL, is_buried);
435}
436
437/* ~This stub implementation is overriden by fully validating signers to
438 * change their funding/splice state to locked */

Callers 1

Calls 1

Tested by

no test coverage detected