aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/discv5/topic.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-12-28 21:17:03 +0800
committerFelix Lange <fjl@users.noreply.github.com>2017-12-28 21:17:03 +0800
commitc15d76a40f330561b2491718a143fd494a2b7b5c (patch)
tree6ef10d25a36b375c3446996b8e4cd12c023158f2 /p2p/discv5/topic.go
parent5369a5c54dca1e7b96680997083035a0f9170d60 (diff)
downloadgo-tangerine-c15d76a40f330561b2491718a143fd494a2b7b5c.tar
go-tangerine-c15d76a40f330561b2491718a143fd494a2b7b5c.tar.gz
go-tangerine-c15d76a40f330561b2491718a143fd494a2b7b5c.tar.bz2
go-tangerine-c15d76a40f330561b2491718a143fd494a2b7b5c.tar.lz
go-tangerine-c15d76a40f330561b2491718a143fd494a2b7b5c.tar.xz
go-tangerine-c15d76a40f330561b2491718a143fd494a2b7b5c.tar.zst
go-tangerine-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.go3
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()