Repository navigation
build: sonic trace marshal + EIP-7702 trace fix + rollback-to-version recovery - #1
Merged
Merged
Conversation
ethermint-cronos b1e2dc72 marshals the trace_debankBlock response with sonic (SIMD/JIT) instead of go-ethereum's reflection-based encoding/json codec, the top CPU consumer in archive backfill. Output stays byte-compatible (ConfigStd).
…6d2) trace_debankBlock / debug_trace* panicked on any block with a type-0x4 (EIP-7702) tx because validateAuthorization used the BeginBlock-only keeper field k.eip155ChainID (nil on the frozen archive query path). Now uses the EVM cfg chain ID. Includes the sonic marshal change.
Loads the app multistore at an explicit version (instead of the latest) before rolling back, so it can recover a store left at mixed per-store versions by an interrupted rollback (where LoadLatestVersion then fails with "wanted to load target N but only found up to N-1").
|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
…e60d1) trace_debankBlock now reconciles every replayed tx against the stored consensus receipt (status / gas_used / logs). Replaying old-era blocks under the current binary's gas semantics can flip a near-gas-limit tx's outcome (OOG <-> success) versus what consensus recorded - 4 such txs found on cronosmainnet_25-1 in pre-v1.2 blocks, plus in-block cascading event divergence. Reconciliation is a no-op whenever replay agrees with consensus. Chaintable/ethermint-cronos#5
Adds the guided second tracing pass: consensus-failed txs replay dry (no state commit), consensus-successful txs retry on a gas ladder until their logs reproduce consensus - eliminating in-block state contamination and OOG-truncated call trees on divergent old-era blocks.
Picks up the round-2 reconciliation fixes (no-rung lowest-completing-gas tree, content-based event pairing, native logIndex alignment) and the GASLIMIT consensus-params fix. Wires app.ConsensusParamsKeeper into the EVM keeper so the query/trace path can populate ctx.ConsensusParams().
Picks up the block_max_gas request-field approach for the GASLIMIT-on-replay fix (CometBFT consensus params, works for all historical heights). Drops the SetConsensusParamsKeeper wiring, which is no longer used.
build: bump ethermint-cronos to consensus receipt reconciliation
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.
Chaintable cronos build changes for the DeBank
trace_debankBlockemitter, plus a store-recovery command.Commits
encoding/jsonwithsonic.ConfigStdfor theDebankBlockRPC response marshal (~9% CPU in trace serving). Output verified byte/semantically identical to stdlib.validateAuthorizationusedk.eip155ChainID(nil on a frozen/query node, set only in BeginBlock) →uint256.CmpBig(nil)panic on type-4 (SetCode) txs. Usecfg.ChainConfig.ChainIDinstead.cronosd rollback-to-version [height]loads the app multistore at an explicit version (instead of the latest) before rolling back, so it can recover a store left at mixed per-store versions by an interruptedrollback(where LoadLatestVersion then fails with "wanted to load target N but only found up to N-1").