Skip to content

Commit

Permalink
remove extra message
Browse files Browse the repository at this point in the history
  • Loading branch information
unclezoro committed Sep 10, 2021
1 parent 443f9a4 commit 1fbecfa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions eth/protocols/diff/handshake.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ func (p *Peer) Handshake(diffSync bool) error {
gopool.Submit(func() {
errc <- p2p.Send(p.rw, DiffCapMsg, &DiffCapPacket{
DiffSync: diffSync,
Extra: defaultExtra,
})
})
gopool.Submit(func() {
Expand Down
2 changes: 2 additions & 0 deletions eth/protocols/diff/protocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ const (
FullDiffLayerMsg = 0x03
)

var defaultExtra = []byte{0x00}

var (
errMsgTooLarge = errors.New("message too long")
errDecode = errors.New("invalid message")
Expand Down

0 comments on commit 1fbecfa

Please sign in to comment.