mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 06:41:44 +01:00
We keep a "database" for each side's persistent state. Upon restart, each side tells the other where it was up to, in terms of the number of commit and revocation messages it receives. Because only one update can be in flight at a time, we can tell w Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
22 lines
282 B
Text
22 lines
282 B
Text
***A***
|
|
LOCAL COMMIT:
|
|
Commit 2:
|
|
Our htlcs: 1
|
|
Their htlcs: 2
|
|
SIGNED
|
|
REMOTE COMMIT:
|
|
Commit 1:
|
|
Our htlcs: 1
|
|
Their htlcs: 2
|
|
SIGNED
|
|
***B***
|
|
LOCAL COMMIT:
|
|
Commit 1:
|
|
Our htlcs: 2
|
|
Their htlcs: 1
|
|
SIGNED
|
|
REMOTE COMMIT:
|
|
Commit 2:
|
|
Our htlcs: 2
|
|
Their htlcs: 1
|
|
SIGNED
|