feat: support Boho hardfork in genesis generator#64
Merged
Conversation
colinkim
reviewed
Mar 19, 2026
Add BohoBlock default in makeGenerator and introduce setBohoConfig for GovMinter v1 to v2 upgrade. Refactor setAnzeonConfig by extracting setAnzeonConfigBase to separate interactive prompts from core logic. Include unit tests for Boho configuration.
29ca89c to
b7dbe33
Compare
…at in tests - Add missing ApplepieBlock to makeGenerator for fork order consistency - Replace custom stringRepeat helper with strings.Repeat from stdlib - Remove trailing newline to satisfy gofmt
Set GasLimit to 105000000 to match StableNet network config and remove ArrowGlacierBlock/GrayGlacierBlock which are not used in StableNet.
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.
Summary
BohoBlockdefault (0) tomakeGeneratorso new genesis configs include Boho activation out of the boxsetBohoConfigto configure the Boho hardfork (GovMinter v1 → v2 upgrade)setAnzeonConfigby extractingsetAnzeonConfigBaseto separate interactive prompts from core config logic, improving testabilityDependencies
Test plan
TestMakeGenerator_BohoBlockDefaultZero— verifies BohoBlock defaults to 0TestSetBohoConfig_OverridesDefaultBlock— verifies user-specified block overrides defaultTestSetBohoConfig_BlockNumber— table-driven test for various block numbersTestSetBohoConfig_GovMinterV2— verifies GovMinter address and versionTestSetBohoConfig_OnlyContainsGovMinter— ensures Boho config doesn't leak other contractsTestSetAnzeonConfigBase_GovMinterV1— verifies base config uses v1 and doesn't set Boho