Optimise stateless prototype#27
Merged
Merged
Conversation
pgebal
pushed a commit
to imapp-pl/erigon
that referenced
this pull request
Jan 16, 2023
pcw109550
pushed a commit
to sunnyside-io/erigon
that referenced
this pull request
May 19, 2023
…view-misc Misc fixes
battlmonstr
pushed a commit
that referenced
this pull request
Sep 14, 2023
Pool: get senders from DB if need, add senderIDSequence
revitteth
referenced
this pull request
in 0xPolygon/cdk-erigon
Dec 12, 2023
…uncs (#27) * feat(test): add testnet config, genesis, tests * feat(test): remove hardcoding of mainnet configs, tidy * feat(zk): tx decode and tests * feat(zk): unit tested hermez db interaction * feat(zk): hermez db benchmarks
revitteth
referenced
this pull request
in 0xPolygon/cdk-erigon
Dec 14, 2023
…uncs (#27) * feat(test): add testnet config, genesis, tests * feat(test): remove hardcoding of mainnet configs, tidy * feat(zk): tx decode and tests * feat(zk): unit tested hermez db interaction * feat(zk): hermez db benchmarks
cffls
pushed a commit
to cffls/erigon
that referenced
this pull request
Jan 12, 2024
* optionally allow setting go version with ENV variable for example `GO=go1.19 make cdk-erigon` * recover sequencer/local tx pool * skip stages while sequencing * extract DefaultZkStages separately * add sequencer zk stages * update stages, move GER handling separately * disable experimental code * fix partially downloaded batches issue with short-circuit * add more comments to the fix * fixup * fixup2
awskii
added a commit
that referenced
this pull request
Apr 9, 2026
…ce check When USE_STATE_CACHE is on, SharedDomains.GetLatest serves reads from stateCache without re-verifying against the backing tx. Under suspected cache invalidation bugs, a stale cache entry silently propagates into gas accounting (observed: tx #27 in Sepolia block 10619150 under-charged by 13680 gas). Add an ASSERT_STATE_CACHE env flag that, on every stateCache hit, fetches the authoritative value from the backing tx and panics on any divergence. This makes the bug fail loudly at the exact offending (domain, key) instead of silently flowing through execution. Set ASSERT_STATE_CACHE=true alongside USE_STATE_CACHE=true to trip the panic on first divergence; the panic message identifies the domain, key, cached value, DB value and txNum.
awskii
added a commit
that referenced
this pull request
Apr 9, 2026
…50 bug Add compile-time-gated tracing in SharedDomains.DomainPut / DomainDel / GetLatest for storage slot: addr 0x77ef087024f87976aada0aa7f73bb8eae6e9dda1 slot 0x3807f2fa1b2db46cc28dd15230c666663aa83ea297580ca83f7216f0517692e6 On Sepolia the Erigon DB carries a stale value 0x45d26f183dd0b6e596 for this slot at block 10619148 (canonical: 0x0). The stale value originated 27 blocks earlier and causes tx #27 of block 10619150 to under-charge 13680 gas. This patch logs every SharedDomains write/delete/read of the target (addr, slot) with a full stack, so a reproduction run from a clean chaindata can identify the caller that writes the stale value. Temporary debug-only code, to be reverted once the root cause is found.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.