OSDN Git Service

Revert delete node info DefaultServices init (#1614)
authoryahtoo <yahtoo.ma@gmail.com>
Sat, 2 Mar 2019 07:42:35 +0000 (15:42 +0800)
committerPaladz <yzhu101@uottawa.ca>
Sat, 2 Mar 2019 07:42:35 +0000 (15:42 +0800)
p2p/node_info.go

index c8ee30d..0c19110 100644 (file)
@@ -3,10 +3,12 @@ package p2p
 import (
        "fmt"
        "net"
+       "strconv"
 
        "github.com/tendermint/go-crypto"
 
        cfg "github.com/bytom/config"
+       "github.com/bytom/consensus"
        "github.com/bytom/version"
 )
 
@@ -30,6 +32,7 @@ func NewNodeInfo(config *cfg.Config, pubkey crypto.PubKeyEd25519, listenAddr str
                Network:    config.ChainID,
                ListenAddr: listenAddr,
                Version:    version.Version,
+               Other:      []string{strconv.FormatUint(uint64(consensus.DefaultServices), 10)},
        }
 }