Skip to content

Optimise stateless prototype#27

Merged
AlexeyAkhunov merged 4 commits into
masterfrom
optimise_stateless_prototype
Jun 2, 2019
Merged

Optimise stateless prototype#27
AlexeyAkhunov merged 4 commits into
masterfrom
optimise_stateless_prototype

Conversation

@AlexeyAkhunov

Copy link
Copy Markdown
Contributor

No description provided.

@AlexeyAkhunov AlexeyAkhunov merged commit 9159c2d into master Jun 2, 2019
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
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.
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.

1 participant