mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 06:06:44 +00:00
core: set test chain config in genesis for tests
This commit is contained in:
parent
92697df6a5
commit
515caa4e6e
1 changed files with 1 additions and 0 deletions
|
|
@ -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.
|
// 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 {
|
func GenesisBlockForTesting(db ethdb.Database, addr common.Address, balance *big.Int) *types.Block {
|
||||||
g := Genesis{
|
g := Genesis{
|
||||||
|
Config: params.BorTestChainConfig,
|
||||||
Alloc: GenesisAlloc{addr: {Balance: balance}},
|
Alloc: GenesisAlloc{addr: {Balance: balance}},
|
||||||
BaseFee: big.NewInt(params.InitialBaseFee),
|
BaseFee: big.NewInt(params.InitialBaseFee),
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue