lnwire: add FundingLocked message

When the funding transaction has been confirmed, the FundingLocked
message is sent by the peers to each other so that the existence of the
newly funded channel can be announced to the network.

This commit also removes the SingleFundingOpenProof message.
This commit is contained in:
bryanvu authored and Olaoluwa Osuntokun committed 2017-02-24 11:37:33 -08:00
1 parent e549a3f0ed
commit eb490b8833
8 files changed
+172 -131

No files matched your search

+5 -3
View File
@@ -30,7 +30,9 @@ const (
CmdSingleFundingResponse = uint32(110)
CmdSingleFundingComplete = uint32(120)
CmdSingleFundingSignComplete = uint32(130)
CmdSingleFundingOpenProof = uint32(140)
// Command for locking a funded channel
CmdFundingLocked = uint32(200)
// Commands for the workflow of cooperatively closing an active channel.
CmdCloseRequest = uint32(300)
@@ -99,8 +101,8 @@ func makeEmptyMessage(command uint32) (Message, error) {
msg = &SingleFundingComplete{}
case CmdSingleFundingSignComplete:
msg = &SingleFundingSignComplete{}
case CmdSingleFundingOpenProof:
msg = &SingleFundingOpenProof{}
case CmdFundingLocked:
msg = &FundingLocked{}
case CmdCloseRequest:
msg = &CloseRequest{}
case CmdCloseComplete: