mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 14:16:44 +00:00
small cleanups
This commit is contained in:
parent
2f82dee875
commit
5689d74ca3
3 changed files with 3 additions and 5 deletions
|
|
@ -325,7 +325,6 @@ func geth(ctx *cli.Context) error {
|
||||||
|
|
||||||
startNode(ctx, stack, false)
|
startNode(ctx, stack, false)
|
||||||
stack.Wait()
|
stack.Wait()
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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 (
|
var (
|
||||||
DeveloperKey, _ = crypto.HexToECDSA("b71c71a67e1177ad4e901695e1b4b9ee17ae16c6668d313eac2f96dbcda3f291")
|
DeveloperKey, _ = crypto.HexToECDSA("b71c71a67e1177ad4e901695e1b4b9ee17ae16c6668d313eac2f96dbcda3f291")
|
||||||
DeveloperAddr = crypto.PubkeyToAddress(DeveloperKey.PublicKey)
|
DeveloperAddr = crypto.PubkeyToAddress(DeveloperKey.PublicKey)
|
||||||
|
|
@ -1777,7 +1777,7 @@ func SetEthConfig(ctx *cli.Context, stack *node.Node, cfg *ethconfig.Config) {
|
||||||
} else {
|
} else {
|
||||||
developer, err = ks.ImportECDSA(DeveloperKey, passphrase)
|
developer, err = ks.ImportECDSA(DeveloperKey, passphrase)
|
||||||
if err != nil {
|
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
|
// Make sure the address is configured as fee recipient, otherwise
|
||||||
|
|
|
||||||
|
|
@ -644,8 +644,7 @@ func DefaultHoodiGenesisBlock() *Genesis {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// DeveloperGenesisBlock returns the genesis block for dev mode, with initial
|
// DeveloperGenesisBlock returns the 'geth --dev' genesis block.
|
||||||
// gas limit and optional prefunded address
|
|
||||||
func DeveloperGenesisBlock(gasLimit uint64, faucet *common.Address) *Genesis {
|
func DeveloperGenesisBlock(gasLimit uint64, faucet *common.Address) *Genesis {
|
||||||
// Override the default period to the user requested one
|
// Override the default period to the user requested one
|
||||||
config := *params.AllDevChainProtocolChanges
|
config := *params.AllDevChainProtocolChanges
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue