aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/discv5/ticket.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2016-11-14 23:56:27 +0800
committerGitHub <noreply@github.com>2016-11-14 23:56:27 +0800
commitd89ea3e6f90c32a97bad58b82a15af0d81f4250e (patch)
tree9acc32d1edca04b8a2b2894b3177f31c78f8298f /p2p/discv5/ticket.go
parentca73dea3b9bcdf3b5424b5c48c70817439e2e304 (diff)
parentb10bcd924ba79f9faa5b8f2d273a7ee02d7b89f5 (diff)
downloadgo-tangerine-d89ea3e6f90c32a97bad58b82a15af0d81f4250e.tar
go-tangerine-d89ea3e6f90c32a97bad58b82a15af0d81f4250e.tar.gz
go-tangerine-d89ea3e6f90c32a97bad58b82a15af0d81f4250e.tar.bz2
go-tangerine-d89ea3e6f90c32a97bad58b82a15af0d81f4250e.tar.lz
go-tangerine-d89ea3e6f90c32a97bad58b82a15af0d81f4250e.tar.xz
go-tangerine-d89ea3e6f90c32a97bad58b82a15af0d81f4250e.tar.zst
go-tangerine-d89ea3e6f90c32a97bad58b82a15af0d81f4250e.zip
Merge pull request #3253 from zsfelfoldi/light-topic3
Light client bugfixes and updates
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)
+ }
}
//}
}