feat: override genesis chain config#186
Conversation
WalkthroughThis pull request introduces a new command-line flag ( Changes
Sequence Diagram(s)sequenceDiagram
participant U as User
participant CLI as Command-Line Interface
participant Node as Geth Node
participant Core as Genesis Setup
U->>CLI: Provide OverrideMorph203Time flag value
CLI->>Node: Parse CLI arguments (including override)
Node->>Core: Call SetupGenesisBlockWithOverride (with ChainOverrides)
Core->>Core: Apply ChainOverrides to genesis config
Core-->>Node: Return genesis block configuration
Node-->>U: Initialize genesis block with override
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (12)
🧰 Additional context used🧬 Code Definitions (8)cmd/geth/main.go (1)
cmd/geth/config.go (1)
eth/backend.go (1)
les/client.go (1)
core/genesis_test.go (1)
cmd/geth/chaincmd.go (2)
params/config_test.go (1)
core/genesis.go (3)
🔇 Additional comments (42)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
feat: override chain config
1. Purpose or design rationale of this PR
Override the config of genesis.
2. PR title
Your PR title must follow conventional commits (as we are doing squash merge for each PR), so it must start with one of the following types:
3. Deployment tag versioning
Has the version in
params/version.gobeen updated?4. Breaking change label
Does this PR have the
breaking-changelabel?Summary by CodeRabbit
New Features
Tests