lnwire: add BOLT#2 channel reestablish message
In this commit the reestablish message have been added, which serves as channel state synchronization message. Before exchanging the messages for particular channel peers have to send it to each other as the first message in order to be sure that non of the updates have been lost because of the previous disconnect.
This commit is contained in:
1 parent
3764e5c65e
commit
f29b4f60e4
3 files changed
+84
No files matched your search
@@ -563,6 +563,12 @@ func TestLightningWireProtocol(t *testing.T) {
|
||||
return mainScenario(&m)
|
||||
},
|
||||
},
|
||||
{
|
||||
msgType: MsgChannelReestablish,
|
||||
scenario: func(m ChannelReestablish) bool {
|
||||
return mainScenario(&m)
|
||||
},
|
||||
},
|
||||
{
|
||||
msgType: MsgChannelAnnouncement,
|
||||
scenario: func(m ChannelAnnouncement) bool {
|
||||
|
||||
Reference in new issue
Block a user