| 3 | #include <channeld/splice.h> |
| 4 | |
| 5 | bool 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 | |
| 18 | struct splice_state *splice_state_new(const tal_t *ctx) |
| 19 | { |
no test coverage detected