Skip to content
This repository was archived by the owner on Dec 16, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
ca70d01
chore: Add lint link check job (#1392)
JonathanOppenheimer Nov 10, 2025
6514a54
chore: lint markdown
JonathanOppenheimer Nov 22, 2025
885adc2
fix: update broken links
JonathanOppenheimer Nov 22, 2025
b03acd5
Merge branch 'master' into JonathanOppenheimer/sync-pr-1392-links-lint
JonathanOppenheimer Nov 22, 2025
80bc72b
Update plugin/evm/config/config.md
JonathanOppenheimer Nov 24, 2025
de0818c
Update sync/README.md
JonathanOppenheimer Nov 24, 2025
8b7f384
chore: fix coreth cherry-pick mistakes
JonathanOppenheimer Nov 24, 2025
6d45128
chore: remove path support
JonathanOppenheimer Nov 24, 2025
0ee527b
chore: revert upstream file changes
JonathanOppenheimer Nov 24, 2025
d0c8053
fix: use subnet-evm rather than coreth items
JonathanOppenheimer Nov 24, 2025
807560d
Merge branch 'master' into JonathanOppenheimer/sync-pr-1392-links-lint
JonathanOppenheimer Dec 1, 2025
75f8372
Merge branch 'master' into JonathanOppenheimer/sync-pr-1392-links-lint
JonathanOppenheimer Dec 1, 2025
6cc0d55
chore: Austin feedback
JonathanOppenheimer Dec 1, 2025
0698fa1
fix: wrong readme
JonathanOppenheimer Dec 1, 2025
42a1e95
docs: align with coreth
JonathanOppenheimer Dec 1, 2025
4a57943
fix: compatability links
JonathanOppenheimer Dec 1, 2025
4756463
Merge branch 'master' into JonathanOppenheimer/sync-pr-1392-links-lint
JonathanOppenheimer Dec 3, 2025
92b0321
Merge branch 'master' into JonathanOppenheimer/sync-pr-1392-links-lint
JonathanOppenheimer Dec 3, 2025
3b35ce2
fix: bug bounty link
JonathanOppenheimer Dec 3, 2025
a0b1798
Update sync/README.md
JonathanOppenheimer Dec 3, 2025
906241a
style: revert comma removal
JonathanOppenheimer Dec 3, 2025
ac9ef22
fix: bug bounty correct link
JonathanOppenheimer Dec 3, 2025
80e349c
style: revert capitilization change
JonathanOppenheimer Dec 3, 2025
f2dcbbf
style: revert capitilization change
JonathanOppenheimer Dec 3, 2025
cecac17
fix: more links
JonathanOppenheimer Dec 3, 2025
46028d5
Merge remote-tracking branch 'origin' into JonathanOppenheimer/sync-p…
JonathanOppenheimer Dec 4, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
style: revert comma removal
  • Loading branch information
JonathanOppenheimer committed Dec 3, 2025
commit 906241a3e1b9b36b5f10d33439c379866d3edabe
2 changes: 1 addition & 1 deletion .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Mocks are auto-generated using [mockgen](https://pkg.go.dev/go.uber.org/mock/moc
- if the file `mocks_generate_test.go` does not exist in the package where the interface is located, create it with content (adapt as needed):

```go
// Copyright (C) 2025-2025, Ava Labs, Inc. All rights reserved.
// Copyright (C) 2019-2025, Ava Labs, Inc. All rights reserved.
// See the file LICENSE for licensing terms.

package mypackage
Expand Down
18 changes: 9 additions & 9 deletions sync/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,24 +61,24 @@ The above information is called a _state summary_, and each syncable block corre
The following steps are executed by the VM to sync its state from peers (see `stateSyncClient.StateSync`):

1. Wipe snapshot data
1. Sync 256 parents of the syncable block (see `BlockRequest`)
1. Sync the EVM state: account trie, code, and storage tries
1. Update in-memory and on-disk pointers
1. Sync 256 parents of the syncable block (see `BlockRequest`),
1. Sync the EVM state: account trie, code, and storage tries,
1. Update in-memory and on-disk pointers.

Steps 3 and 4 involve syncing tries. To sync trie data, the VM will send a series of `LeafRequests` to its peers. Each request specifies:

- Type of trie (`NodeType`)
- Type of trie (`NodeType`):
- `statesync.StateTrieNode` (account trie and storage tries share the same database)
- `Root` of the trie to sync
- `Start` and `End` specify a range of keys
- `Root` of the trie to sync,
- `Start` and `End` specify a range of keys.

Peers responding to these requests send back trie leafs (key/value pairs) beginning at `Start` and up to `End` (or a maximum number of leafs). The response must also contain include a merkle proof for the range of leafs it contains. Nodes serving state sync data are responsible for constructing these proofs (see `sync/handlers/leafs_request.go`)

`client.GetLeafs` handles sending a single request and validating the response. This method will retry the request from a different peer up to `maxRetryAttempts` (= 32) times if the peer's response is:

- malformed
- does not contain a valid merkle proof
- not received in time
- malformed,
- does not contain a valid merkle proof,
- not received in time.

If there are more leafs in a trie than can be returned in a single response, the client will make successive requests to continue fetching data (with `Start` set to the last key received) until the trie is complete. `CallbackLeafSyncer` manages this process and does a callback on each batch of received leafs.

Expand Down
Loading