aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/message.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2015-02-19 08:52:03 +0800
committerFelix Lange <fjl@twurst.com>2015-02-19 23:54:53 +0800
commit73f94f37559ca0c8739c7dddeaf46d36827fdf30 (patch)
tree48e828b4a60c2bf2ea5b0ae917925af3b3b8ff01 /p2p/message.go
parent4322632c5924ef9aaaad1cdcdfa2f796c493cf69 (diff)
downloadgo-tangerine-73f94f37559ca0c8739c7dddeaf46d36827fdf30.tar
go-tangerine-73f94f37559ca0c8739c7dddeaf46d36827fdf30.tar.gz
go-tangerine-73f94f37559ca0c8739c7dddeaf46d36827fdf30.tar.bz2
go-tangerine-73f94f37559ca0c8739c7dddeaf46d36827fdf30.tar.lz
go-tangerine-73f94f37559ca0c8739c7dddeaf46d36827fdf30.tar.xz
go-tangerine-73f94f37559ca0c8739c7dddeaf46d36827fdf30.tar.zst
go-tangerine-73f94f37559ca0c8739c7dddeaf46d36827fdf30.zip
p2p: disable encryption handshake
The diff is a bit bigger than expected because the protocol handshake logic has moved out of Peer. This is necessary because the protocol handshake will have custom framing in the final protocol.
Diffstat (limited to 'p2p/message.go')
-rw-r--r--p2p/message.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/p2p/message.go b/p2p/message.go
index 07916f7b3..7adad4b09 100644
--- a/p2p/message.go
+++ b/p2p/message.go
@@ -197,7 +197,7 @@ func (rw *frameRW) ReadMsg() (msg Msg, err error) {
return msg, err
}
if !bytes.HasPrefix(start, magicToken) {
- return msg, fmt.Errorf("bad magic token %x", start[:4], magicToken)
+ return msg, fmt.Errorf("bad magic token %x", start[:4])
}
size := binary.BigEndian.Uint32(start[4:])