Skip to content

Commit

Permalink
les, core/bloombits: post-LES/2 fixes (ethereum#15391)
Browse files Browse the repository at this point in the history
* les: fix topic ID

* core/bloombits: fix interface conversion
  • Loading branch information
zsfelfoldi authored and karalabe committed Oct 27, 2017
1 parent 6dafec0 commit 8d434f6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion core/bloombits/matcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,10 @@ func (s *MatcherSession) Close() {

// Error returns any failure encountered during the matching session.
func (s *MatcherSession) Error() error {
return s.err.Load().(error)
if err := s.err.Load(); err != nil {
return err.(error)
}
return nil
}

// AllocateRetrieval assigns a bloom bit index to a client process that can either
Expand Down
2 changes: 1 addition & 1 deletion les/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func lesTopic(genesisHash common.Hash, protocolVersion uint) discv5.Topic {
default:
panic(nil)
}
return discv5.Topic(name + common.Bytes2Hex(genesisHash.Bytes()[0:8]))
return discv5.Topic(name + "@" + common.Bytes2Hex(genesisHash.Bytes()[0:8]))
}

type LightDummyAPI struct{}
Expand Down

0 comments on commit 8d434f6

Please sign in to comment.