plugeth/les
Felföldi Zsolt b4a2681120
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
2020-05-22 13:46:34 +02:00
..
checkpointoracle les/checkpointoracle: move oracle into its own package (#20508) 2020-01-07 11:24:21 +02:00
flowcontrol all: update author list and licenses 2019-07-22 12:17:27 +03:00
lespay/client les, les/lespay: implement new server pool (#20758) 2020-05-22 13:46:34 +02:00
utils les, les/lespay: implement new server pool (#20758) 2020-05-22 13:46:34 +02:00
api_backend.go internal/ethapi: don't set sender-balance to maxuint, fixes #16999 (#20783) 2020-03-23 18:21:23 +01:00
api_test.go build: use golangci-lint (#20295) 2019-11-18 10:49:17 +02:00
api.go les/checkpointoracle: move oracle into its own package (#20508) 2020-01-07 11:24:21 +02:00
balance_test.go les: rework clientpool (#20077) 2019-11-02 13:02:35 +01:00
balance.go les: rename UpdateBalance to AddBalance and simplify return format (#20304) 2019-11-18 12:42:49 +01:00
benchmark.go les, les/lespay/client: add service value statistics and API (#20837) 2020-04-09 11:55:32 +02:00
bloombits.go les: handler separation (#19639) 2019-08-21 11:29:34 +02:00
client_handler.go les, les/lespay: implement new server pool (#20758) 2020-05-22 13:46:34 +02:00
client.go les, les/lespay: implement new server pool (#20758) 2020-05-22 13:46:34 +02:00
clientpool_test.go les, miner, accounts/abi/bind: fix load-sensitive unit tests (#20698) 2020-02-20 13:05:54 +01:00
clientpool.go all: simplify and fix database iteration with prefix/start (#20808) 2020-04-15 14:08:53 +03:00
commons.go les, les/lespay: implement new server pool (#20758) 2020-05-22 13:46:34 +02:00
costtracker.go les: add missing Ticker.Stop call (#20864) 2020-04-02 15:54:59 +02:00
distributor_test.go les: separate peer into clientPeer and serverPeer (#19991) 2020-02-26 11:41:24 +02:00
distributor.go les, les/lespay: implement new server pool (#20758) 2020-05-22 13:46:34 +02:00
enr_entry.go les, les/lespay: implement new server pool (#20758) 2020-05-22 13:46:34 +02:00
fetcher.go les, les/lespay: implement new server pool (#20758) 2020-05-22 13:46:34 +02:00
handler_test.go les: separate peer into clientPeer and serverPeer (#19991) 2020-02-26 11:41:24 +02:00
metrics.go les, les/lespay: implement new server pool (#20758) 2020-05-22 13:46:34 +02:00
odr_requests.go trie: initial implementation for range proof (#20908) 2020-04-24 14:37:56 +03:00
odr_test.go all: seperate consensus error and evm internal error (#20830) 2020-04-22 11:25:36 +03:00
odr.go les: separate peer into clientPeer and serverPeer (#19991) 2020-02-26 11:41:24 +02:00
peer_test.go les: remove invalid use of t.Fatal in TestHandshake (#21012) 2020-05-01 13:48:52 +02:00
peer.go les, les/lespay: implement new server pool (#20758) 2020-05-22 13:46:34 +02:00
protocol.go les, les/lespay: implement new server pool (#20758) 2020-05-22 13:46:34 +02:00
request_test.go eth, les: fix time sensitive unit tests (#20741) 2020-03-12 11:25:52 +01:00
retrieve.go les, les/lespay: implement new server pool (#20758) 2020-05-22 13:46:34 +02:00
server_handler.go les: drop the message if the entire p2p connection is stuck (#21033) 2020-05-12 11:02:15 +03:00
server.go les, les/lespay: implement new server pool (#20758) 2020-05-22 13:46:34 +02:00
serverpool_test.go les, les/lespay: implement new server pool (#20758) 2020-05-22 13:46:34 +02:00
serverpool.go les, les/lespay: implement new server pool (#20758) 2020-05-22 13:46:34 +02:00
servingqueue.go les: separate peer into clientPeer and serverPeer (#19991) 2020-02-26 11:41:24 +02:00
sync_test.go eth, les: fix time sensitive unit tests (#20741) 2020-03-12 11:25:52 +01:00
sync.go les: separate peer into clientPeer and serverPeer (#19991) 2020-02-26 11:41:24 +02:00
test_helper.go les, les/lespay: implement new server pool (#20758) 2020-05-22 13:46:34 +02:00
txrelay.go les, les/lespay/client: add service value statistics and API (#20837) 2020-04-09 11:55:32 +02:00
ulc_test.go les: separate peer into clientPeer and serverPeer (#19991) 2020-02-26 11:41:24 +02:00
ulc.go cmd, eth, les: fix up ultra light config integration 2019-07-09 20:34:42 +03:00