We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5aeadbd commit a49a20bCopy full SHA for a49a20b
les/client.go
@@ -18,7 +18,6 @@
18
package les
19
20
import (
21
- "errors"
22
"fmt"
23
"time"
24
@@ -277,15 +276,6 @@ func (s *LightEthereum) Protocols() []p2p.Protocol {
277
276
}, s.dialCandidates)
278
}
279
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
-
289
// Start implements node.Lifecycle, starting all internal goroutines needed by the
290
// light ethereum protocol implementation.
291
func (s *LightEthereum) Start() error {
0 commit comments