erigon-pulse/cmd
Felföldi Zsolt 1ca95e8352 les, les/lespay: implement new server pool (#20758)
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
2020-06-15 19:38:12 +03:00
..
abidump post-merge fixups 2020-02-27 17:22:25 +03:00
abigen cmd/abigen: Sanitize vyper's combined json names (#20419) 2020-01-30 13:36:30 +02:00
bootnode Apply Turbo-Geth modifications to go-ethereum codebase 2019-11-01 21:52:03 +01:00
checkpoint-admin geth 1.9.13 (#469) 2020-04-19 18:31:47 +01:00
clef cmd/clef, signer/core: password input fixes (#20960) 2020-06-15 19:38:12 +03:00
devp2p cmd/clef, signer/core: password input fixes (#20960) 2020-06-15 19:38:12 +03:00
ethkey cmd/clef, signer/core: password input fixes (#20960) 2020-06-15 19:38:12 +03:00
evm Run tests on lmdb and badger (#624) 2020-06-05 10:25:33 +01:00
geth cmd/clef, signer/core: password input fixes (#20960) 2020-06-15 19:38:12 +03:00
hack Optimize multi put (#657) 2020-06-12 18:59:06 +01:00
p2psim Apply Turbo-Geth modifications to go-ethereum codebase 2019-11-01 21:52:03 +01:00
pics optimize codeBitmap (#626) 2020-06-06 21:49:06 +01:00
prometheus send bolt buckets stats to prometheus (#653) 2020-06-12 09:24:46 +01:00
puppeth cmd: fix log contexts (#21077) 2020-06-15 19:38:12 +03:00
restapi Remove ctx from Open. Stop goroutines on Close. (#650) 2020-06-12 10:31:21 +01:00
rlpdump Apply Turbo-Geth modifications to go-ethereum codebase 2019-11-01 21:52:03 +01:00
rpcdaemon Remove ctx from Open. Stop goroutines on Close. (#650) 2020-06-12 10:31:21 +01:00
rpctest optimize codeBitmap (#626) 2020-06-06 21:49:06 +01:00
semantics Tx retrace extension for Rest API (#436) 2020-04-10 19:47:45 +01:00
state Remove ctx from Open. Stop goroutines on Close. (#650) 2020-06-12 10:31:21 +01:00
tester optimize codeBitmap (#626) 2020-06-06 21:49:06 +01:00
utils les, les/lespay: implement new server pool (#20758) 2020-06-15 19:38:12 +03:00