diff options
author | Felix Lange <fjl@twurst.com> | 2014-11-05 08:28:46 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2014-11-22 04:52:45 +0800 |
commit | 7149191dd999f4d192398e4b0821b656e62f3345 (patch) | |
tree | 967ba2f95859e59751d5e2bf403f0ea334ffc99e /p2p/protocol.go | |
parent | f38052c499c1fee61423efeddb1f52677f1442e9 (diff) | |
download | go-tangerine-7149191dd999f4d192398e4b0821b656e62f3345.tar.gz go-tangerine-7149191dd999f4d192398e4b0821b656e62f3345.tar.zst go-tangerine-7149191dd999f4d192398e4b0821b656e62f3345.zip |
p2p: fix issues found during review
Diffstat (limited to 'p2p/protocol.go')
-rw-r--r-- | p2p/protocol.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/p2p/protocol.go b/p2p/protocol.go index ccc275287..d22ba70cb 100644 --- a/p2p/protocol.go +++ b/p2p/protocol.go @@ -143,9 +143,6 @@ func (d DiscReason) String() string { return discReasonToString[d] } -func (bp *baseProtocol) Ping() { -} - func (bp *baseProtocol) Offset() MsgCode { return baseProtocolOffset } @@ -287,7 +284,7 @@ func (bp *baseProtocol) handleHandshake(c *ethutil.Value) error { // self connect detection if bytes.Compare(bp.peer.server.ClientIdentity().Pubkey()[1:], pubkey) == 0 { - return NewPeerError(PubkeyForbidden, "not allowed to connect to bp") + return NewPeerError(PubkeyForbidden, "not allowed to connect to self") } // register pubkey on server. this also sets the pubkey on the peer (need lock) |