Skip to content

[r3.4] db/state: 4x default step, transparent execution log, no key referencing#20930

Merged
AskAlexSharov merged 4 commits into
release/3.4from
awskii/r34-inc-shard-def-size
May 8, 2026
Merged

[r3.4] db/state: 4x default step, transparent execution log, no key referencing#20930
AskAlexSharov merged 4 commits into
release/3.4from
awskii/r34-inc-shard-def-size

Conversation

@awskii

@awskii awskii commented Apr 30, 2026

Copy link
Copy Markdown
Member

Cherry-picks 3 commits from awskii/inc-shard-def-size onto release/3.4:

  • eae5788ad2 4x bigger default step (db/state/statecfg/state_schema.go)
  • 90f79e1dc3 disable key referencing (db/state/domain_committed.go)
  • 12229c3f73 more transparent execution (db/state/squeeze.go)

A 4th commit (56b2c9b3d8 wire step flag) is intentionally skipped — it depends on ErigondbDomainStepsInFrozenFileFlag / LogErigondbDomainStepsInFrozenFileOverride / aggregator builder method ErigondbDomainStepsInFrozenFile(), none of which exist on release/3.4. Wiring it would require backporting that whole API surface, which is out of scope here.

go build ./db/state/... ./execution/commitment/... ./cmd/erigon/... passes locally.

thats to be able to rebuild and run v3.4.0 without references.

awskii added 3 commits April 30, 2026 14:13
(cherry picked from commit 9ba41ee)
(cherry picked from commit 856b696)
(cherry picked from commit 831742f)
Comment thread db/state/squeeze.go
acRo.Close()

if !squeeze && !statecfg.Schema.CommitmentDomain.ReplaceKeysInValues {
if !squeeze {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. statecfg.Schema.CommitmentDomain.ReplaceKeysInValues -- maybe keep this check
  2. changesqueeze flag default value = false

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

statecfg.Schema.CommitmentDomain.ReplaceKeysInValues

keeping this makes regeneration process depending on current schema, i wanted to decouple this.

2 false yes, let it be like that. they are fine regardless erigon compiled with enabled refs or not, while referenced snapshot requires only compatible erigon version

@awskii awskii requested a review from Giulio2002 as a code owner May 5, 2026 15:57
AskAlexSharov pushed a commit that referenced this pull request May 7, 2026
Cherry-pick of #20930, #21025, and #21026 onto performance.

---------

Co-authored-by: sudeepdino008 <sudeepdino008@gmail.com>
@AskAlexSharov AskAlexSharov merged commit dd89464 into release/3.4 May 8, 2026
20 of 21 checks passed
@AskAlexSharov AskAlexSharov deleted the awskii/r34-inc-shard-def-size branch May 8, 2026 01:45
AskAlexSharov added a commit that referenced this pull request May 8, 2026
…no key referencing" (#21057)

Reverts #20930
```
go run ./cmd/erigon --datadir ~/data/chiado35_minimal/ --chain=chiado --prune.mode=minimal
panic: runtime error: slice bounds out of range [20:3]

goroutine 126 [running]:
github.com/erigontech/erigon/execution/commitment.(*cell).hashStorageKey(...)
    /home/alex/projects/erigon/execution/commitment/hex_patricia_hashed.go:283
github.com/erigontech/erigon/execution/commitment.(*cell).deriveHashedKeys(0x4251ff67980, 0x44, {0x381ac40, 0x42506b53080}, 0x14, {0x4252003a6a8, 0x20, 0x20})
    /home/alex/projects/erigon/execution/commitment/hex_patricia_hashed.go:481 +0x336
github.com/erigontech/erigon/execution/commitment.(*HexPatriciaHashed).unfoldBranchNode(0x4251ff56000, 0x9, 0x44, 0x0)
    /home/alex/projects/erigon/execution/commitment/hex_patricia_hashed.go:1827 +0x629
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants