aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/utils
diff options
context:
space:
mode:
authorzelig <viktor.tron@gmail.com>2015-03-27 05:49:22 +0800
committerzelig <viktor.tron@gmail.com>2015-03-27 05:52:22 +0800
commitb375bbee5fa0b04867cdecdc28e66078a2e32280 (patch)
tree574aecb617218dc7fe9f7d1c0b0a8b32a195f3fa /cmd/utils
parentb0b0939879b9fb8453ec1c8fa2ceb522e56df3bc (diff)
downloadgo-tangerine-b375bbee5fa0b04867cdecdc28e66078a2e32280.tar.gz
go-tangerine-b375bbee5fa0b04867cdecdc28e66078a2e32280.tar.zst
go-tangerine-b375bbee5fa0b04867cdecdc28e66078a2e32280.zip
settable etherbase
- etherbase flag for block reward destination - coinbase => etherbase - CLI- eth Config -> eth, xeth -> RPC / Miner - use primary instead of coinbase as the unlock magic wildcard - accounts: firstAddr/Coinbase -> Primary
Diffstat (limited to 'cmd/utils')
-rw-r--r--cmd/utils/flags.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go
index f948cdb06..1b5559081 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),