put MSGID bytes back in to lnwire

This commit is contained in:
Tadge Dryja 2015-12-31 12:38:33 -04:00 committed by Olaoluwa Osuntokun
parent 19233dc42d
commit 919b0002b1

@ -4,8 +4,23 @@ package lnwire
import ( import (
"bytes" "bytes"
"fmt" "fmt"
"github.com/btcsuite/btcd/wire"
"io" "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 //4-byte network + 4-byte message id + payload-length 4-byte