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

Function splice_record_commitment

channeld/splice.c:5–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3#include <channeld/splice.h>
4
5bool splice_record_commitment(struct inflight *inflight,
6 struct commitsig *commit)
7{
8 if (!commit)
9 return false;
10
11 if (inflight->last_tx != commit->tx)
12 inflight->last_tx = tal_free(inflight->last_tx);
13 inflight->last_tx = tal_steal(inflight, commit->tx);
14 inflight->last_sig = commit->commit_signature;
15 return true;
16}
17
18struct splice_state *splice_state_new(const tal_t *ctx)
19{

Callers 2

Calls 1

tal_freeFunction · 0.85

Tested by

no test coverage detected