mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-26 05:27:19 +00:00
a5d08c893d
This commit does various code refactorings: - generalizes and moves the request retrieval/timeout/resend logic out of LesOdr (will be used by a subsequent PR) - reworks the peer management logic so that all services can register with peerSet to get notified about added/dropped peers (also gets rid of the ugly getAllPeers callback in requestDistributor) - moves peerSet, LesOdr, requestDistributor and retrieveManager initialization out of ProtocolManager because I believe they do not really belong there and the whole init process was ugly and ad-hoc |
||
---|---|---|
.. | ||
flowcontrol | ||
api_backend.go | ||
backend.go | ||
distributor_test.go | ||
distributor.go | ||
execqueue_test.go | ||
execqueue.go | ||
fetcher.go | ||
handler_test.go | ||
handler.go | ||
helper_test.go | ||
metrics.go | ||
odr_requests.go | ||
odr_test.go | ||
odr.go | ||
peer.go | ||
protocol.go | ||
randselect_test.go | ||
randselect.go | ||
request_test.go | ||
retrieve.go | ||
server.go | ||
serverpool.go | ||
sync.go | ||
txrelay.go |