core: set test chain config in genesis for tests

This commit is contained in:
Manav Darji 2025-05-21 13:59:02 +05:30
parent 92697df6a5
commit 515caa4e6e
No known key found for this signature in database
GPG key ID: A426F0124435F36E

View file

@ -603,6 +603,7 @@ func (g *Genesis) MustCommit(db ethdb.Database, triedb *triedb.Database) *types.
// GenesisBlockForTesting creates and writes a block in which addr has the given wei balance.
func GenesisBlockForTesting(db ethdb.Database, addr common.Address, balance *big.Int) *types.Block {
g := Genesis{
Config: params.BorTestChainConfig,
Alloc: GenesisAlloc{addr: {Balance: balance}},
BaseFee: big.NewInt(params.InitialBaseFee),
}