diff --git a/lnwire/message.go b/lnwire/message.go index 1dd6dd1ea..c38db2e33 100644 --- a/lnwire/message.go +++ b/lnwire/message.go @@ -4,8 +4,23 @@ package lnwire import ( "bytes" "fmt" - "github.com/btcsuite/btcd/wire" "io" + + "github.com/btcsuite/btcd/wire" +) + +// message type identifyer bytes +const ( + MSGID_FUNDREQUEST = 0x30 + MSGID_FUNDRESPONSE = 0x31 + + MSGID_CLOSEREQUEST = 0x40 + MSGID_CLOSERESPONSE = 0x41 + + MSGID_TEXTCHAT = 0x70 + + MSGID_FWDMSG = 0x20 + MSGID_FWDAUTHREQ = 0x21 ) //4-byte network + 4-byte message id + payload-length 4-byte