1
0
Fork 0
mirror of https://github.com/ACINQ/eclair.git synced 2025-03-13 19:37:35 +01:00

Remove manualTransition in SYNCING -> NORMAL transition

manualTransition is a fix for old akka version where onTransition events
are not fired for same state transitions. Must not be used if states are
different, otherwise duplicate events are fired.
This commit is contained in:
dpad85 2020-07-16 18:06:03 +02:00
parent 67525ce48a
commit 667eb2fda3
No known key found for this signature in database
GPG key ID: 574C8C6A1673E987

View file

@ -1575,7 +1575,7 @@ class Channel(val nodeParams: NodeParams, val wallet: EclairWallet, remoteNodeId
} }
} }
goto(NORMAL) using manualTransition(SYNCING, NORMAL, d, d.copy(commitments = commitments1)) sending sendQueue goto(NORMAL) using d.copy(commitments = commitments1) sending sendQueue
} }
case Event(c: CMD_ADD_HTLC, d: DATA_NORMAL) => handleAddDisconnected(c, d) case Event(c: CMD_ADD_HTLC, d: DATA_NORMAL) => handleAddDisconnected(c, d)