diff options
author | Zsolt Felfoldi <zsfelfoldi@gmail.com> | 2016-11-13 04:02:02 +0800 |
---|---|---|
committer | Zsolt Felfoldi <zsfelfoldi@gmail.com> | 2016-11-14 20:22:19 +0800 |
commit | e33e57684fcd364900a896aa3e759bf4821c02e1 (patch) | |
tree | 468ce7630903528a4f4082936bae659816976ec5 /p2p/discv5/ticket.go | |
parent | a0c6649960bb4b1155181915d898d066af00a8cb (diff) | |
download | dexon-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.go | 4 |
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) + } } //} } |