mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 14:42:40 +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>
23 lines
281 B
Text
23 lines
281 B
Text
# Variety of tests for save/restore.
|
|
A:offer 1
|
|
B:recvoffer
|
|
A:commit
|
|
B:recvcommit
|
|
A:recvrevoke
|
|
B:commit
|
|
A:recvcommit
|
|
B:recvrevoke
|
|
B:remove 1
|
|
B:commit
|
|
A:recvremove
|
|
A:recvcommit
|
|
B:recvrevoke
|
|
A:commit
|
|
B:recvcommit
|
|
A:recvrevoke
|
|
restart
|
|
checksync
|
|
echo ***A***
|
|
A:dump
|
|
echo ***B***
|
|
B:dump
|