Set mainnet dynamic committee sizing activation block - #134
Set mainnet dynamic committee sizing activation block#134bdimitrov-netzine wants to merge 1 commit into
Conversation
|
Claude finished @bdimitrov-netzine's task in 1m 26s —— View job PR Review
SummaryThis is a minimal, targeted change — one constant updated from a sentinel value ( Code ReviewWhat's changed ( -pub const MAINNET_DYNAMIC_COMMITTEE_SIZING_BLOCK: u64 = u64::MAX;
+pub const MAINNET_DYNAMIC_COMMITTEE_SIZING_BLOCK: u64 = 8_291_010;Positive observations:
Observations1. Devnet uses
2. No mainnet-specific activation test There are tests for testnet/devnet activation boundaries (e.g., 3. Operational question (not a code issue) The mainnet block VerdictThe code change is correct. No bugs or safety issues. The two minor points above (devnet sentinel vs |
Security Scan - CodeSeverity: HIGH, CRITICAL No vulnerabilities found View scan results |
Updated MAINNET_DYNAMIC_COMMITTEE_SIZING_BLOCK from u64::MAX to 8_291_010 to schedule the DynamicCommitteeSizing hardfork activation on mainnet. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
e1c16bb to
cca216c
Compare
|
Claude finished @bdimitrov-netzine's task in 1m 25s —— View job PR Review
SummaryThis is a minimal, correctly-scoped hardfork activation — one constant updated from the sentinel Diff// crates/execution/evm/src/chainspec.rs:182
-pub const MAINNET_DYNAMIC_COMMITTEE_SIZING_BLOCK: u64 = u64::MAX;
+pub const MAINNET_DYNAMIC_COMMITTEE_SIZING_BLOCK: u64 = 8_291_010;Code ReviewPositive observations:
Observations1. Pre-existing:
2. No mainnet-specific activation boundary test There is a pattern for activation boundary tests (e.g., #[test]
fn dynamic_committee_sizing_active_at_mainnet_activation_block() {
let hardforks = RaylsChainHardforks::for_network(RaylsNetwork::Mainnet);
assert!(!hardforks.is_dynamic_committee_sizing_active_at_block(
MAINNET_DYNAMIC_COMMITTEE_SIZING_BLOCK - 1,
));
assert!(hardforks.is_dynamic_committee_sizing_active_at_block(
MAINNET_DYNAMIC_COMMITTEE_SIZING_BLOCK,
));
}Not a blocker, but it follows the existing pattern and pins the value in the test suite. Fix this → 3. Operational note (not a code issue)
VerdictThe change is correct. No bugs, no safety issues. The two minor points (devnet sentinel inconsistency, missing mainnet boundary test) are pre-existing patterns and not blockers for merging. |
Updated
MAINNET_DYNAMIC_COMMITTEE_SIZING_BLOCKfromu64::MAXto8_291_010to schedule the DynamicCommitteeSizing hardfork activation on mainnet, following the same practice as the testnet activation in #118.HybridRewards stays at
ForkCondition::Neveron mainnet.