mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-25 04:57:17 +00:00
1ca95e8352
This PR reimplements the light client server pool. It is also a first step to move certain logic into a new lespay package. This package will contain the implementation of the lespay token sale functions, the token buying and selling logic and other components related to peer selection/prioritization and service quality evaluation. Over the long term this package will be reusable for incentivizing future protocols. Since the LES peer logic is now based on enode.Iterator, it can now use DNS-based fallback discovery to find servers. This document describes the function of the new components: https://gist.github.com/zsfelfoldi/3c7ace895234b7b345ab4f71dab102d4 # Conflicts: # cmd/utils/flags.go # core/forkid/forkid.go # les/client.go # les/client_handler.go # les/commons.go # les/distributor.go # les/enr_entry.go # les/fetcher.go # les/lespay/client/valuetracker.go # les/metrics.go # les/peer.go # les/protocol.go # les/retrieve.go # les/server.go # les/serverpool.go # les/test_helper.go # les/utils/expiredvalue.go # les/utils/weighted_select.go # les/utils/weighted_select_test.go # params/bootnodes.go |
||
---|---|---|
.. | ||
downloader | ||
fetcher | ||
filters | ||
gasprice | ||
mgr | ||
stagedsync | ||
tracers | ||
api_backend.go | ||
api_test.go | ||
api_tracer.go | ||
api.go | ||
backend.go | ||
bloombits.go | ||
config.go | ||
debug.go | ||
discovery.go | ||
firehose.go | ||
gen_config.go | ||
handler_test.go | ||
handler.go | ||
helper_test.go | ||
mgr.go | ||
peer.go | ||
protocol_test.go | ||
protocol.go | ||
sync_test.go | ||
sync.go |