mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-11-12 15:17:32 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user