OSDN Git Service

reduce the unused info in node_info (#1033)
authorPaladz <yzhu101@uottawa.ca>
Thu, 7 Jun 2018 13:27:44 +0000 (21:27 +0800)
committerGitHub <noreply@github.com>
Thu, 7 Jun 2018 13:27:44 +0000 (21:27 +0800)
netsync/handle.go
p2p/version.go [deleted file]

index 2922c0f..e147ede 100644 (file)
@@ -6,7 +6,6 @@ import (
 
        log "github.com/sirupsen/logrus"
        "github.com/tendermint/go-crypto"
-       "github.com/tendermint/go-wire"
        cmn "github.com/tendermint/tmlibs/common"
        dbm "github.com/tendermint/tmlibs/db"
 
@@ -101,11 +100,7 @@ func (sm *SyncManager) makeNodeInfo(listenerStatus bool) *p2p.NodeInfo {
                Moniker: sm.config.Moniker,
                Network: sm.config.ChainID,
                Version: version.Version,
-               Other: []string{
-                       cmn.Fmt("service_flag=%v", strconv.FormatUint(uint64(consensus.DefaultServices), 10)),
-                       cmn.Fmt("wire_version=%v", wire.Version),
-                       cmn.Fmt("p2p_version=%v", p2p.Version),
-               },
+               Other:   []string{strconv.FormatUint(uint64(consensus.DefaultServices), 10)},
        }
 
        if !sm.sw.IsListening() {
diff --git a/p2p/version.go b/p2p/version.go
deleted file mode 100644 (file)
index d18237e..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-package p2p
-
-//Version p2p library version
-const Version = "0.5.0"