diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-03-27 19:12:05 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-03-27 19:12:05 +0800 |
commit | 0b4b2b81f93d1b7762a9fda6a464bdee67d286de (patch) | |
tree | 4cbf812f513daa35c72c7487e4b912d2ffe31324 /cmd/utils | |
parent | 54a14d5c9d7d1e5039753eac991cd057a5514fe8 (diff) | |
parent | b375bbee5fa0b04867cdecdc28e66078a2e32280 (diff) | |
download | dexon-0b4b2b81f93d1b7762a9fda6a464bdee67d286de.tar dexon-0b4b2b81f93d1b7762a9fda6a464bdee67d286de.tar.gz dexon-0b4b2b81f93d1b7762a9fda6a464bdee67d286de.tar.bz2 dexon-0b4b2b81f93d1b7762a9fda6a464bdee67d286de.tar.lz dexon-0b4b2b81f93d1b7762a9fda6a464bdee67d286de.tar.xz dexon-0b4b2b81f93d1b7762a9fda6a464bdee67d286de.tar.zst dexon-0b4b2b81f93d1b7762a9fda6a464bdee67d286de.zip |
Merge pull request #580 from ethersphere/frontier/cli-key
settable etherbase
Diffstat (limited to 'cmd/utils')
-rw-r--r-- | cmd/utils/flags.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index ea11cb158..12d4df923 100644 --- a/cmd/utils/flags.go +++ b/cmd/utils/flags.go @@ -96,10 +96,15 @@ var ( Name: "mine", Usage: "Enable mining", } + EtherbaseFlag = cli.StringFlag{ + Name: "Etherbase", + Usage: "public address for block mining rewards. By default the address of your primary account is used", + Value: "primary", + } UnlockedAccountFlag = cli.StringFlag{ Name: "unlock", - Usage: "unlock the account given until this program exits (prompts for password). '--unlock coinbase' unlocks the primary (coinbase) account", + Usage: "unlock the account given until this program exits (prompts for password). '--unlock primary' unlocks the primary account", Value: "", } PasswordFileFlag = cli.StringFlag{ @@ -215,6 +220,7 @@ func MakeEthConfig(clientID, version string, ctx *cli.Context) *eth.Config { LogFile: ctx.GlobalString(LogFileFlag.Name), LogLevel: ctx.GlobalInt(LogLevelFlag.Name), LogJSON: ctx.GlobalString(LogJSONFlag.Name), + Etherbase: ctx.GlobalString(EtherbaseFlag.Name), MinerThreads: ctx.GlobalInt(MinerThreadsFlag.Name), AccountManager: GetAccountManager(ctx), VmDebug: ctx.GlobalBool(VMDebugFlag.Name), |