1
0
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:
Pierre-Marie Padiou 2018-09-12 20:25:22 +02:00 committed by GitHub
parent 8645038943
commit c9184146d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {