lnwire: adjusted coop close messages to comply with spec
Removed close_request and close_complete and replaced with shutdown and closing_signed.
This commit is contained in:
1 parent
570c0e5508
commit
d7bb600c23
8 files changed
+220
-195
No files matched your search
+6
-6
@@ -32,8 +32,8 @@ const (
|
||||
MsgSingleFundingComplete = 34
|
||||
MsgSingleFundingSignComplete = 35
|
||||
MsgFundingLocked = 36
|
||||
MsgCloseRequest = 39
|
||||
MsgCloseComplete = 40
|
||||
MsgShutdown = 39
|
||||
MsgClosingSigned = 40
|
||||
MsgUpdateAddHTLC = 128
|
||||
MsgUpdateFufillHTLC = 130
|
||||
MsgUpdateFailHTLC = 131
|
||||
@@ -87,10 +87,10 @@ func makeEmptyMessage(msgType MessageType) (Message, error) {
|
||||
msg = &SingleFundingSignComplete{}
|
||||
case MsgFundingLocked:
|
||||
msg = &FundingLocked{}
|
||||
case MsgCloseRequest:
|
||||
msg = &CloseRequest{}
|
||||
case MsgCloseComplete:
|
||||
msg = &CloseComplete{}
|
||||
case MsgShutdown:
|
||||
msg = &Shutdown{}
|
||||
case MsgClosingSigned:
|
||||
msg = &ClosingSigned{}
|
||||
case MsgUpdateAddHTLC:
|
||||
msg = &UpdateAddHTLC{}
|
||||
case MsgUpdateFailHTLC:
|
||||
|
||||
Reference in new issue
Block a user