funding+lnd: make sure accessman won't interrupt funding flow

If there's an error occured when updating the peer's status after the
channel status is changed, we now make sure we log the error instead of
letting it interrupt the channel open/close flow.
This commit is contained in:
yyforyongyu
2025-06-17 22:46:37 +08:00
committed by Olaoluwa Osuntokun
parent 107b74d81d
commit a8d1985fd6
3 changed files with 29 additions and 51 deletions

View File

@@ -232,29 +232,23 @@ type mockChanEvent struct {
}
func (m *mockChanEvent) NotifyOpenChannelEvent(outpoint wire.OutPoint,
remotePub *btcec.PublicKey) error {
remotePub *btcec.PublicKey) {
m.openEvent <- outpoint
return nil
}
func (m *mockChanEvent) NotifyPendingOpenChannelEvent(outpoint wire.OutPoint,
pendingChannel *channeldb.OpenChannel,
remotePub *btcec.PublicKey) error {
remotePub *btcec.PublicKey) {
m.pendingOpenEvent <- channelnotifier.PendingOpenChannelEvent{
ChannelPoint: &outpoint,
PendingChannel: pendingChannel,
}
return nil
}
func (m *mockChanEvent) NotifyFundingTimeout(outpoint wire.OutPoint,
remotePub *btcec.PublicKey) error {
return nil
remotePub *btcec.PublicKey) {
}
// mockZeroConfAcceptor always accepts the channel open request for zero-conf