]> git.bitcoin.ninja Git - rust-lightning/commit
DRY `funding_created()` and `funding_signed()` for V1 channels
authorDuncan Dean <git@dunxen.dev>
Fri, 4 Oct 2024 14:35:43 +0000 (16:35 +0200)
committerDuncan Dean <git@dunxen.dev>
Mon, 21 Oct 2024 14:25:22 +0000 (16:25 +0200)
commit2db1aa27b6d602839d00eb4aea48916de1e95c73
tree18fad27d6b9cb03471cfbd3c102e18ad8dfbc205
parent0db051b75a45d0af2df1d1349727d58915c8a463
DRY `funding_created()` and `funding_signed()` for V1 channels

There is a decent amount of shared code in these two methods so we make
an attempt to share that code here by introducing the
`InitialRemoteCommitmentReceiver` trait. This trait will also come in
handy when we need similar commitment_signed handling behaviour for
dual-funded channels.
lightning/src/ln/channel.rs