fix(cicd): derive network ID from genesis - #2529
Conversation
Signed-off-by: Vladislav Lapin <v.lapin@scalablesolutions.io>
|
Warning Review limit reached
Next review available in: 59 minutes Limit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?Wait for the limit to reset, then comment An organization admin can change what happens after included review limits in Billing. How do review limits work?CodeRabbit enforces per-developer PR review limits within each organization. For paid Pro and Pro+ reviews, CodeRabbit uses a developer's included PR review attempts over the past 7 days to set the current hourly allowance. At typical activity levels, the full plan allowance applies. Higher sustained activity can lower the allowance until earlier attempts leave the 7-day window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
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. Comment |
|
@coderabbitai review |
|
gzliudan
left a comment
There was a problem hiding this comment.
please use dev-upgrade branch
|
Closing this as superseded on the current development line. |
Proposed changes
Remove the redundant
--networkidarguments from the mainnet, testnet, and devnet container start scripts.The scripts initialize their data directories from
genesis.json, and the node already derives a zero-valued network ID from the stored chain ID. Keeping the values in the scripts duplicates the genesis configuration and allows them to drift apart.Addresses #1887.
Types of changes
Impacted Components
Verification
bash -n cicd/mainnet/start.sh cicd/testnet/start.sh cicd/devnet/start.shmake all quick-test test tidy generategenesis/mainnet.json,genesis/testnet.json, andgenesis/devnet.json.--networkidand queriednet_version: mainnet returned50, testnet51, and devnet5551.make lintstill reports the same 75 pre-existing findings asmain; this shell-only change introduces no new lint findings.End-to-end test plan
genesis.json.net_versionand confirm it matches the genesis chain ID.Checklist