aboutsummaryrefslogtreecommitdiffstats
path: root/swarm/network
diff options
context:
space:
mode:
authorgluk256 <gluk256@users.noreply.github.com>2019-01-24 19:35:10 +0800
committerAnton Evangelatov <anton.evangelatov@gmail.com>2019-01-24 19:35:10 +0800
commitad13d2d407d2f614c39af92430fda0a926da2a8a (patch)
tree3e60b79e0f88b230000292322400d9c42e60713c /swarm/network
parent3591fc603f3fd971bdd17272b9b2eed016be92d9 (diff)
downloadgo-tangerine-ad13d2d407d2f614c39af92430fda0a926da2a8a.tar
go-tangerine-ad13d2d407d2f614c39af92430fda0a926da2a8a.tar.gz
go-tangerine-ad13d2d407d2f614c39af92430fda0a926da2a8a.tar.bz2
go-tangerine-ad13d2d407d2f614c39af92430fda0a926da2a8a.tar.lz
go-tangerine-ad13d2d407d2f614c39af92430fda0a926da2a8a.tar.xz
go-tangerine-ad13d2d407d2f614c39af92430fda0a926da2a8a.tar.zst
go-tangerine-ad13d2d407d2f614c39af92430fda0a926da2a8a.zip
swarm/version: commit version added (#18510)
Diffstat (limited to 'swarm/network')
-rw-r--r--swarm/network/kademlia.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/swarm/network/kademlia.go b/swarm/network/kademlia.go
index 2c2276251..9f4245603 100644
--- a/swarm/network/kademlia.go
+++ b/swarm/network/kademlia.go
@@ -27,6 +27,7 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/swarm/log"
"github.com/ethereum/go-ethereum/swarm/pot"
+ sv "github.com/ethereum/go-ethereum/swarm/version"
)
/*
@@ -552,6 +553,9 @@ func (k *Kademlia) string() string {
var rows []string
rows = append(rows, "=========================================================================")
+ if len(sv.GitCommit) > 0 {
+ rows = append(rows, fmt.Sprintf("commit hash: %s", sv.GitCommit))
+ }
rows = append(rows, fmt.Sprintf("%v KΛÐΞMLIΛ hive: queen's address: %x", time.Now().UTC().Format(time.UnixDate), k.BaseAddr()[:3]))
rows = append(rows, fmt.Sprintf("population: %d (%d), NeighbourhoodSize: %d, MinBinSize: %d, MaxBinSize: %d", k.conns.Size(), k.addrs.Size(), k.NeighbourhoodSize, k.MinBinSize, k.MaxBinSize))