Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wanwiset25 committed Jun 28, 2024
1 parent 1bdf536 commit c72aabb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
1 change: 0 additions & 1 deletion les/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ func New(ctx *node.ServiceContext, config *ethconfig.Config) (*LightEthereum, er
}

leth.relay = NewLesTxRelay(peers, leth.reqDist)
leth.serverPool = newServerPool(chainDb, quitSync, &leth.wg)
leth.retriever = newRetrieveManager(peers, leth.reqDist, leth.serverPool)
leth.odr = NewLesOdr(chainDb, leth.chtIndexer, leth.bloomTrieIndexer, leth.bloomIndexer, leth.retriever)
if leth.blockchain, err = light.NewLightChain(leth.odr, leth.chainConfig, leth.engine); err != nil {
Expand Down
10 changes: 0 additions & 10 deletions p2p/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,16 +269,6 @@ func (c *conn) set(f connFlag, val bool) {
atomic.StoreInt32((*int32)(&c.flags), int32(flags))
}

func (c *conn) set(f connFlag, val bool) {
flags := connFlag(atomic.LoadInt32((*int32)(&c.flags)))
if val {
flags |= f
} else {
flags &= ^f
}
atomic.StoreInt32((*int32)(&c.flags), int32(flags))
}

// Peers returns all connected peers.
func (srv *Server) Peers() []*Peer {
var ps []*Peer
Expand Down

0 comments on commit c72aabb

Please sign in to comment.