Official Go implementation of the Ethereum protocol
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gary rong
45cb1a580a
eth, les: add new config field SyncFromCheckpoint ( #22123 )
...
This PR introduces a new config field SyncFromCheckpoint for light client.
In some special scenarios, it's required to start synchronization from some
arbitrary checkpoint or even from the scratch. So this PR offers this
flexibility to users so that the synchronization start point can be configured.
There are two relevant configs: SyncFromCheckpoint and Checkpoint.
- If the SyncFromCheckpoint is true, the light client will try to sync from the
specified checkpoint.
- If the Checkpoint is not configured, then the light client will sync from the
scratch(from the latest header if the database is not empty)
Additional notes: these two configs are not visible in the CLI flags but only
accessable in the config file.
Example Usage:
[Eth]
SyncFromCheckpoint = true
[Eth.Checkpoint]
SectionIndex = 100
SectionHead = "0xabc"
CHTRoot = "0xabc"
BloomRoot = "0xabc"
PS. Historical checkpoint can be retrieved from the synced full node or light
client via les_getCheckpoint API.
4 years ago
..
checkpointoracle
les: update checktime even if check fails
4 years ago
flowcontrol
les/utils: protect against WeightedRandomSelect overflow ( #21839 )
4 years ago
lespay
all: simplify nested complexity and if blocks ending with a return statement ( #21854 )
4 years ago
utils
les: rework float conversion on arm64 and other architectures ( #21994 )
4 years ago
api.go
les, les/lespay/server: refactor client pool ( #21236 )
4 years ago
api_backend.go
core, all: split vm.Context into BlockContext and TxContext ( #21672 )
4 years ago
api_test.go
les, les/lespay/server: refactor client pool ( #21236 )
4 years ago
benchmark.go
les: remove useless protocol defines ( #22115 )
4 years ago
bloombits.go
les: handler separation ( #19639 )
5 years ago
client.go
internal/ethapi: restore net_version RPC method ( #22061 )
4 years ago
client_handler.go
eth, les: add new config field SyncFromCheckpoint ( #22123 )
4 years ago
clientpool.go
les: remove clientPeerSet and serverSet ( #21566 )
4 years ago
clientpool_test.go
les: remove clientPeerSet and serverSet ( #21566 )
4 years ago
commons.go
eth, les: add new config field SyncFromCheckpoint ( #22123 )
4 years ago
costtracker.go
les: add missing Ticker.Stop call ( #20864 )
5 years ago
distributor.go
les, les/lespay: implement new server pool ( #20758 )
5 years ago
distributor_test.go
les: separate peer into clientPeer and serverPeer ( #19991 )
5 years ago
enr_entry.go
core, eth: split eth package, implement snap protocol ( #21482 )
4 years ago
fetcher.go
les: implement new les fetcher ( #20692 )
4 years ago
fetcher_test.go
les: fix unittest ( #21382 )
4 years ago
handler_test.go
les: remove useless protocol defines ( #22115 )
4 years ago
metrics.go
les, les/lespay/server: refactor client pool ( #21236 )
4 years ago
odr.go
les, light: remove untrusted header retrieval in ODR ( #21907 )
4 years ago
odr_requests.go
les: remove useless protocol defines ( #22115 )
4 years ago
odr_test.go
core, all: split vm.Context into BlockContext and TxContext ( #21672 )
4 years ago
peer.go
les: les/4 minimalistic version ( #21909 )
4 years ago
peer_test.go
les: introduce forkID ( #21974 )
4 years ago
protocol.go
les: les/4 minimalistic version ( #21909 )
4 years ago
pruner.go
les: historical data garbage collection ( #19570 )
4 years ago
pruner_test.go
les: historical data garbage collection ( #19570 )
4 years ago
request_test.go
les: historical data garbage collection ( #19570 )
4 years ago
retrieve.go
les: don't drop sentTo for normal cases ( #22048 )
4 years ago
server.go
les: remove clientPeerSet and serverSet ( #21566 )
4 years ago
server_handler.go
les: remove useless protocol defines ( #22115 )
4 years ago
serverpool.go
all: simplify nested complexity and if blocks ending with a return statement ( #21854 )
4 years ago
serverpool_test.go
all: simplify nested complexity and if blocks ending with a return statement ( #21854 )
4 years ago
servingqueue.go
les: separate peer into clientPeer and serverPeer ( #19991 )
5 years ago
sync.go
eth, les: add new config field SyncFromCheckpoint ( #22123 )
4 years ago
sync_test.go
eth, les: add new config field SyncFromCheckpoint ( #22123 )
4 years ago
test_helper.go
eth, les: add new config field SyncFromCheckpoint ( #22123 )
4 years ago
txrelay.go
les: remove transaction propagation limits ( #22125 )
4 years ago
ulc.go
cmd, eth, les: fix up ultra light config integration
5 years ago
ulc_test.go
les: historical data garbage collection ( #19570 )
4 years ago