aboutsummaryrefslogtreecommitdiffstats
path: root/swarm/network/protocol.go
diff options
context:
space:
mode:
authorAnton Evangelatov <anton.evangelatov@gmail.com>2018-12-24 00:31:32 +0800
committerGitHub <noreply@github.com>2018-12-24 00:31:32 +0800
commit9e9fc87e70accf2b81be8772ab2ab0c914e95666 (patch)
tree410ccdefb083b08796a14ac03653a5319e9895d7 /swarm/network/protocol.go
parent335760bf0674ee553f3ca65afd6f29b6557d1b55 (diff)
downloadgo-tangerine-9e9fc87e70accf2b81be8772ab2ab0c914e95666.tar
go-tangerine-9e9fc87e70accf2b81be8772ab2ab0c914e95666.tar.gz
go-tangerine-9e9fc87e70accf2b81be8772ab2ab0c914e95666.tar.bz2
go-tangerine-9e9fc87e70accf2b81be8772ab2ab0c914e95666.tar.lz
go-tangerine-9e9fc87e70accf2b81be8772ab2ab0c914e95666.tar.xz
go-tangerine-9e9fc87e70accf2b81be8772ab2ab0c914e95666.tar.zst
go-tangerine-9e9fc87e70accf2b81be8772ab2ab0c914e95666.zip
swarm: remove unused/dead code (#18351)
Diffstat (limited to 'swarm/network/protocol.go')
-rw-r--r--swarm/network/protocol.go7
1 files changed, 0 insertions, 7 deletions
diff --git a/swarm/network/protocol.go b/swarm/network/protocol.go
index 4b9b28cdc..a4b29239c 100644
--- a/swarm/network/protocol.go
+++ b/swarm/network/protocol.go
@@ -35,8 +35,6 @@ import (
const (
DefaultNetworkID = 3
- // ProtocolMaxMsgSize maximum allowed message size
- ProtocolMaxMsgSize = 10 * 1024 * 1024
// timeout for waiting
bzzHandshakeTimeout = 3000 * time.Millisecond
)
@@ -250,11 +248,6 @@ func NewBzzPeer(p *protocols.Peer) *BzzPeer {
return &BzzPeer{Peer: p, BzzAddr: NewAddr(p.Node())}
}
-// LastActive returns the time the peer was last active
-func (p *BzzPeer) LastActive() time.Time {
- return p.lastActive
-}
-
// ID returns the peer's underlay node identifier.
func (p *BzzPeer) ID() enode.ID {
// This is here to resolve a method tie: both protocols.Peer and BzzAddr are embedded