diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-12-28 21:17:03 +0800 |
---|---|---|
committer | Felix Lange <fjl@users.noreply.github.com> | 2017-12-28 21:17:03 +0800 |
commit | c15d76a40f330561b2491718a143fd494a2b7b5c (patch) | |
tree | 6ef10d25a36b375c3446996b8e4cd12c023158f2 /p2p/discv5/topic.go | |
parent | 5369a5c54dca1e7b96680997083035a0f9170d60 (diff) | |
download | dexon-c15d76a40f330561b2491718a143fd494a2b7b5c.tar dexon-c15d76a40f330561b2491718a143fd494a2b7b5c.tar.gz dexon-c15d76a40f330561b2491718a143fd494a2b7b5c.tar.bz2 dexon-c15d76a40f330561b2491718a143fd494a2b7b5c.tar.lz dexon-c15d76a40f330561b2491718a143fd494a2b7b5c.tar.xz dexon-c15d76a40f330561b2491718a143fd494a2b7b5c.tar.zst dexon-c15d76a40f330561b2491718a143fd494a2b7b5c.zip |
p2p/discv5: fix reg lookup, polish code, use logger (#15737)
Diffstat (limited to 'p2p/discv5/topic.go')
-rw-r--r-- | p2p/discv5/topic.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/p2p/discv5/topic.go b/p2p/discv5/topic.go index b6bea013c..e7a7f8e02 100644 --- a/p2p/discv5/topic.go +++ b/p2p/discv5/topic.go @@ -24,6 +24,7 @@ import ( "time" "github.com/ethereum/go-ethereum/common/mclock" + "github.com/ethereum/go-ethereum/log" ) const ( @@ -235,7 +236,7 @@ func (t *topicTable) deleteEntry(e *topicEntry) { // It is assumed that topics and waitPeriods have the same length. func (t *topicTable) useTicket(node *Node, serialNo uint32, topics []Topic, idx int, issueTime uint64, waitPeriods []uint32) (registered bool) { - debugLog(fmt.Sprintf("useTicket %v %v %v", serialNo, topics, waitPeriods)) + log.Trace("Using discovery ticket", "serial", serialNo, "topics", topics, "waits", waitPeriods) //fmt.Println("useTicket", serialNo, topics, waitPeriods) t.collectGarbage() |