Skip to content

Commit a49a20b

Browse files
committed
remove P2PServer method from les, unnecessary
1 parent 5aeadbd commit a49a20b

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

les/client.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
package les
1919

2020
import (
21-
"errors"
2221
"fmt"
2322
"time"
2423

@@ -277,15 +276,6 @@ func (s *LightEthereum) Protocols() []p2p.Protocol {
277276
}, s.dialCandidates)
278277
}
279278

280-
// P2PServer registers the node's running p2p server with the Backend.
281-
func (s *LightEthereum) P2PServer(server *p2p.Server) error {
282-
if server == nil {
283-
return errors.New("p2p server is not running, cannot register with les backend") // TODO is this error message okay?
284-
}
285-
s.p2pServer = server
286-
return nil
287-
}
288-
289279
// Start implements node.Lifecycle, starting all internal goroutines needed by the
290280
// light ethereum protocol implementation.
291281
func (s *LightEthereum) Start() error {

0 commit comments

Comments
 (0)