aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/discv5/ticket.go
diff options
context:
space:
mode:
authorZsolt Felfoldi <zsfelfoldi@gmail.com>2016-11-13 04:02:02 +0800
committerZsolt Felfoldi <zsfelfoldi@gmail.com>2016-11-14 20:22:19 +0800
commite33e57684fcd364900a896aa3e759bf4821c02e1 (patch)
tree468ce7630903528a4f4082936bae659816976ec5 /p2p/discv5/ticket.go
parenta0c6649960bb4b1155181915d898d066af00a8cb (diff)
downloaddexon-e33e57684fcd364900a896aa3e759bf4821c02e1.tar
dexon-e33e57684fcd364900a896aa3e759bf4821c02e1.tar.gz
dexon-e33e57684fcd364900a896aa3e759bf4821c02e1.tar.bz2
dexon-e33e57684fcd364900a896aa3e759bf4821c02e1.tar.lz
dexon-e33e57684fcd364900a896aa3e759bf4821c02e1.tar.xz
dexon-e33e57684fcd364900a896aa3e759bf4821c02e1.tar.zst
dexon-e33e57684fcd364900a896aa3e759bf4821c02e1.zip
p2p/discv5: fixed bootnode connect issues
Diffstat (limited to 'p2p/discv5/ticket.go')
-rw-r--r--p2p/discv5/ticket.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/p2p/discv5/ticket.go b/p2p/discv5/ticket.go
index 3ee2f7fc4..202504314 100644
--- a/p2p/discv5/ticket.go
+++ b/p2p/discv5/ticket.go
@@ -525,7 +525,9 @@ func (s *ticketStore) searchLookupDone(lookup lookupInfo, nodes []*Node, ping fu
} // else {
if s.canQueryTopic(n, lookup.topic) {
hash := query(n, lookup.topic)
- s.addTopicQuery(common.BytesToHash(hash), n, lookup)
+ if hash != nil {
+ s.addTopicQuery(common.BytesToHash(hash), n, lookup)
+ }
}
//}
}