diff options
author | Sonic <sonic@cobinhood.com> | 2018-10-16 17:01:19 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-12 17:23:39 +0800 |
commit | 9cba523a12858576bc2d45fd52c5530b5c1e7de6 (patch) | |
tree | e5c1f14ee7895526c9178c8e1392907da54fa891 /dex/nodetable.go | |
parent | 64d06d63bc37257a01956b637b7e5df7fc2d838d (diff) | |
download | go-tangerine-9cba523a12858576bc2d45fd52c5530b5c1e7de6.tar go-tangerine-9cba523a12858576bc2d45fd52c5530b5c1e7de6.tar.gz go-tangerine-9cba523a12858576bc2d45fd52c5530b5c1e7de6.tar.bz2 go-tangerine-9cba523a12858576bc2d45fd52c5530b5c1e7de6.tar.lz go-tangerine-9cba523a12858576bc2d45fd52c5530b5c1e7de6.tar.xz go-tangerine-9cba523a12858576bc2d45fd52c5530b5c1e7de6.tar.zst go-tangerine-9cba523a12858576bc2d45fd52c5530b5c1e7de6.zip |
dex: implement peerSetLoop
Diffstat (limited to 'dex/nodetable.go')
-rw-r--r-- | dex/nodetable.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/dex/nodetable.go b/dex/nodetable.go index 929b168a8..f1291b4fd 100644 --- a/dex/nodetable.go +++ b/dex/nodetable.go @@ -7,6 +7,7 @@ import ( "github.com/dexon-foundation/dexon/common" "github.com/dexon-foundation/dexon/crypto/sha3" "github.com/dexon-foundation/dexon/event" + "github.com/dexon-foundation/dexon/log" "github.com/dexon-foundation/dexon/p2p/enode" "github.com/dexon-foundation/dexon/rlp" ) @@ -59,6 +60,8 @@ func (t *nodeTable) Add(metas []*NodeMeta) { } t.entry[meta.ID] = meta newMetas = append(newMetas, meta) + log.Trace("add new node meta", "id", meta.ID[:8], + "ip", meta.IP, "udp", meta.UDP, "tcp", meta.TCP) } t.feed.Send(newMetasEvent{newMetas}) } |