small cleanups

This commit is contained in:
Jared Wasinger 2025-05-28 18:41:13 +08:00
parent 2f82dee875
commit 5689d74ca3
3 changed files with 3 additions and 5 deletions

View file

@ -325,7 +325,6 @@ func geth(ctx *cli.Context) error {
startNode(ctx, stack, false)
stack.Wait()
return nil
}

View file

@ -984,7 +984,7 @@ var (
}
)
// default account to prefund when running Geth in ephemeral development mode
// default account to prefund when running Geth in dev mode
var (
DeveloperKey, _ = crypto.HexToECDSA("b71c71a67e1177ad4e901695e1b4b9ee17ae16c6668d313eac2f96dbcda3f291")
DeveloperAddr = crypto.PubkeyToAddress(DeveloperKey.PublicKey)
@ -1777,7 +1777,7 @@ func SetEthConfig(ctx *cli.Context, stack *node.Node, cfg *ethconfig.Config) {
} else {
developer, err = ks.ImportECDSA(DeveloperKey, passphrase)
if err != nil {
Fatalf("Failed to create developer account: %v", err)
Fatalf("Failed to import developer account: %v", err)
}
}
// Make sure the address is configured as fee recipient, otherwise

View file

@ -644,8 +644,7 @@ func DefaultHoodiGenesisBlock() *Genesis {
}
}
// DeveloperGenesisBlock returns the genesis block for dev mode, with initial
// gas limit and optional prefunded address
// DeveloperGenesisBlock returns the 'geth --dev' genesis block.
func DeveloperGenesisBlock(gasLimit uint64, faucet *common.Address) *Genesis {
// Override the default period to the user requested one
config := *params.AllDevChainProtocolChanges