Skip to content

Commit cc0f0e2

Browse files
fjlkaralabe
authored andcommitted
p2p: remove "cap" enr entry (#19800)
This entry was an experiment, but we're moving on to the entry-per-protocol instead.
1 parent 2206061 commit cc0f0e2

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

p2p/protocol.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,3 @@ func (cs capsByNameAndVersion) Swap(i, j int) { cs[i], cs[j] = cs[j], cs[i] }
7979
func (cs capsByNameAndVersion) Less(i, j int) bool {
8080
return cs[i].Name < cs[j].Name || (cs[i].Name == cs[j].Name && cs[i].Version < cs[j].Version)
8181
}
82-
83-
func (capsByNameAndVersion) ENRKey() string { return "cap" }

p2p/server.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,6 @@ func (srv *Server) setupLocalNode() error {
488488
srv.nodedb = db
489489
srv.localnode = enode.NewLocalNode(db, srv.PrivateKey)
490490
srv.localnode.SetFallbackIP(net.IP{127, 0, 0, 1})
491-
srv.localnode.Set(capsByNameAndVersion(srv.ourHandshake.Caps))
492491
// TODO: check conflicts
493492
for _, p := range srv.Protocols {
494493
for _, e := range p.Attributes {

0 commit comments

Comments
 (0)