mirror of
https://github.com/ACINQ/eclair.git
synced 2024-11-20 02:27:32 +01:00
Added catch-all handler for local commit (minor) (#699)
This commit is contained in:
parent
8645038943
commit
c9184146d5
@ -1469,8 +1469,12 @@ class Channel(val nodeParams: NodeParams, wallet: EclairWallet, remoteNodeId: Pu
|
||||
// we receive this when we send command to ourselves
|
||||
case Event("ok", _) => stay
|
||||
|
||||
// when we realize we need to update our network fees, we send a CMD_UPDATE_FEE to ourselves, this can be ignored
|
||||
// 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
|
||||
|
||||
case Event(WatchEventSpent(BITCOIN_FUNDING_SPENT, tx), d: HasCommitments) if tx.txid == d.commitments.localCommit.publishableTxs.commitTx.tx.txid =>
|
||||
log.warning(s"processing local commit spent in catch-all handler")
|
||||
spendLocalCurrent(d)
|
||||
}
|
||||
|
||||
onTransition {
|
||||
|
Loading…
Reference in New Issue
Block a user