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

Function fulfill_htlc

tests/fuzz/fuzz-full_channel.c:136–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136static bool fulfill_htlc(struct channel *channel, enum side original_sender,
137 u64 id, const struct preimage *preimage)
138{
139 if (channel_fulfill_htlc(channel, original_sender, id, preimage, NULL)
140 != CHANNEL_ERR_REMOVE_OK)
141 return false;
142 return true;
143}
144
145static bool fail_htlc(struct channel *channel, enum side original_sender, u64 id)
146{

Callers 1

runFunction · 0.70

Calls 1

channel_fulfill_htlcFunction · 0.85

Tested by

no test coverage detected