]> git.bitcoin.ninja Git - rust-lightning/commit
Prevent ChannelForceClosed monitor update error after detecting spend
authorWilmer Paulino <wilmer@wilmerpaulino.com>
Thu, 4 May 2023 22:16:17 +0000 (15:16 -0700)
committerWilmer Paulino <wilmer@wilmerpaulino.com>
Thu, 4 May 2023 22:22:25 +0000 (15:22 -0700)
commit9878edeebaae6a33f08c609896d78c1d471a7577
tree1507d5f58e525f7859da9b12c25143698ef9b119
parente94647ca4ebc63be4a8164804d08cf37e4655d6c
Prevent ChannelForceClosed monitor update error after detecting spend

If we detected a spend for a channel onchain prior to handling its
`ChannelForceClosed` monitor update, we'd log a concerning error
message and return an error unnecessarily. The channel has already been
closed, so handling the `ChannelForceClosed` monitor update at this
point should be a no-op.
lightning/src/chain/channelmonitor.rs