plugeth/cmd
rjl493456442 1cb3b6aee4
eth/protocols/snap: fix snap sync failure on empty storage range (#28306)
This change addresses an issue in snap sync, specifically when the entire sync process can be halted due to an encountered empty storage range.

Currently, on the snap sync client side, the response to an empty (partial) storage range is discarded as a non-delivery. However, this response can be a valid response, when the particular range requested does not contain any slots.

For instance, consider a large contract where the entire key space is divided into 16 chunks, and there are no available slots in the last chunk [0xf] -> [end]. When the node receives a request for this particular range, the response includes:

    The proof with origin [0xf]
    A nil storage slot set

If we simply discard this response, the finalization of the last range will be skipped, halting the entire sync process indefinitely. The test case TestSyncWithUnevenStorage can reproduce the scenario described above.

In addition, this change also defines the common variables MaxAddress and MaxHash.
2023-10-13 09:08:26 +02:00
..
abidump all: update license headers and AUTHORS from git history (#24947) 2022-05-24 20:39:40 +02:00
abigen accounts, build, mobile: remove Andriod and iOS support 2023-02-03 12:29:07 +02:00
bootnode cmd/bootnode: fix timer leak (#27754) 2023-08-01 14:12:11 +02:00
clef eth/protocols/snap: fix snap sync failure on empty storage range (#28306) 2023-10-13 09:08:26 +02:00
devp2p eth/protocols/snap: fix snap sync failure on empty storage range (#28306) 2023-10-13 09:08:26 +02:00
ethkey internal/version: use gitCommit injection in version handling code (#25851) 2022-09-23 14:08:25 +02:00
evm accounts, cmd: fix typos (#28300) 2023-10-11 11:29:10 +03:00
faucet node: remove unused error return from Attach (#27450) 2023-06-14 08:24:47 -04:00
geth cmd/geth: fix failing test (#28322) 2023-10-12 09:54:00 +02:00
p2psim internal/version: use gitCommit injection in version handling code (#25851) 2022-09-23 14:08:25 +02:00
rlpdump all: change format 0x%x to %#x (#25221) 2022-07-04 11:03:32 +03:00
utils cmd, core: resolve scheme from a read-write database (#28313) 2023-10-11 11:27:44 +03:00