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

Function sign_htlc_timeout

lightningd/onchain_control.c:894–908  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

892}
893
894static u8 *sign_htlc_timeout(const tal_t *ctx,
895 const struct bitcoin_tx *tx,
896 const struct onchain_signing_info *info)
897{
898 const bool anchor_outputs = channel_type_has_anchors(info->channel->type);
899
900 assert(info->msgtype == WIRE_ONCHAIND_SPEND_HTLC_TIMEOUT);
901 return towire_hsmd_sign_any_local_htlc_tx(ctx,
902 info->u.htlc_timeout.commit_num,
903 tx, info->wscript,
904 anchor_outputs,
905 0,
906 &info->channel->peer->id,
907 info->channel->dbid);
908}
909
910static u8 *sign_fulfill(const tal_t *ctx,
911 const struct bitcoin_tx *tx,

Callers

nothing calls this directly

Calls 1

channel_type_has_anchorsFunction · 0.85

Tested by

no test coverage detected