A splice candidate was mined and spent before splice_locked, which * needs the peer: do what handle_peer_splice_locked() would have. */
| 2683 | /* A splice candidate was mined and spent before splice_locked, which |
| 2684 | * needs the peer: do what handle_peer_splice_locked() would have. */ |
| 2685 | static void adopt_splice_candidate(struct channel *channel, |
| 2686 | const struct channel_inflight *inflight) |
| 2687 | { |
| 2688 | s64 splice_amnt = inflight->funding->splice_amnt; |
| 2689 | |
| 2690 | log_unusual(channel->log, |
| 2691 | "Splice candidate %s spent before splice_locked;" |
| 2692 | " adopting it", |
| 2693 | fmt_bitcoin_outpoint(tmpctx, &inflight->funding->outpoint)); |
| 2694 | update_channel_from_inflight(channel->peer->ld, channel, inflight, |
| 2695 | true); |
| 2696 | channel->our_msat.millisatoshis += splice_amnt * 1000; /* Raw: splicing */ |
| 2697 | channel->msat_to_us_min.millisatoshis += splice_amnt * 1000; /* Raw: splicing */ |
| 2698 | channel->msat_to_us_max.millisatoshis += splice_amnt * 1000; /* Raw: splicing */ |
| 2699 | wallet_channel_save(channel->peer->ld->wallet, channel); |
| 2700 | } |
| 2701 | |
| 2702 | /* The block scanner is iterating this outpoint's watches right now, and |
| 2703 | * drop_to_chain() adds a funding_spend_watch if there is none: make the |
no test coverage detected