1
0
Fork 0
mirror of https://github.com/ACINQ/eclair.git synced 2025-02-23 22:46:44 +01:00

Minor: ignore "disconnecting" message in Channel (#1231)

This message is sent by the `Peer` in answer to a `Peer.Disconnect` command.
This commit is contained in:
Pierre-Marie Padiou 2019-12-10 13:40:38 +01:00 committed by GitHub
parent b6f922f3c3
commit 6ffd35f8a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1638,6 +1638,9 @@ class Channel(val nodeParams: NodeParams, val wallet: EclairWallet, remoteNodeId
// we receive this when we send command to ourselves
case Event("ok", _) => stay
// we receive this when we tell the peer to disconnect
case Event("disconnecting", _) => stay
// when we realize we need to update our network fees, we send a CMD_UPDATE_FEE to ourselves which may result in this error being sent back to ourselves, this can be ignored
case Event(Status.Failure(_: CannotAffordFees), _) => stay