Added ReservationID for funding_requeset

This commit is contained in:
Joseph Poon authored and Olaoluwa Osuntokun committed 2016-01-14 23:56:09 -08:00
1 parent 84df87255f
commit bf8e0d727d
4 files changed
+24 -11

No files matched your search

+8 -1
View File
@@ -14,10 +14,17 @@ const MessageHeaderSize = 12
const MaxMessagePayload = 1024 * 1024 * 32 // 32MB
const (
//Funding channel open
CmdFundingRequest = uint32(200)
CmdFundingResponse = uint32(210)
CmdFundingSignAccept = uint32(220)
CmdFundingSignComplete = uint32(230)
//Close channel
CmdCloseRequest = uint32(300)
CmdCloseComplete = uint32(310)
//HTLC payment
)
//Every message has these functions:
@@ -53,7 +60,7 @@ type messageHeader struct {
//NOTE(j): We don't need to worry about the magic overlapping with
//bitcoin since this is inside encrypted comms anyway, but maybe we
//should use the XOR (^wire.TestNet3) just in case???
magic wire.BitcoinNet
magic wire.BitcoinNet //which Blockchain Technology(TM) to use
command uint32
length uint32
}