Update expensive migration check#7128
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Walkthrough
ChangesExpensive Fork Epoch Payload and ETH RPC Retry
Sequence Diagram(s)sequenceDiagram
participant Client
participant eth_getCode/eth_getStorageAt
participant call_raw
participant ChainConfig
Client->>eth_getCode/eth_getStorageAt: request at tipset ts
eth_getCode/eth_getStorageAt->>call_raw: call_on_state(state_root, ts)
call_raw->>ChainConfig: expensive_fork_between(fork_floor, fork_height)
ChainConfig-->>call_raw: Some(epoch)
call_raw-->>eth_getCode/eth_getStorageAt: Err(ExpensiveFork { epoch })
eth_getCode/eth_getStorageAt->>eth_getCode/eth_getStorageAt: ts = ts.parents()
eth_getCode/eth_getStorageAt->>call_raw: call_on_state(state_root, parent_ts)
call_raw->>ChainConfig: expensive_fork_between(...)
ChainConfig-->>call_raw: None
call_raw-->>eth_getCode/eth_getStorageAt: Ok(result)
eth_getCode/eth_getStorageAt-->>Client: result
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
✨ Simplify code
Comment |
2c661a5 to
2d3ab7c
Compare
Summary of changes
Changes introduced in this pull request:
Reference issue to close (if applicable)
Closes
Other information and links
Change checklist
Outside contributions
Summary by CodeRabbit
Bug Fixes
eth_callandeth_estimateGasno longer immediately rejected after expensive network-upgrade migrations; only the upgrade epoch is refused.Tests