aboutsummaryrefslogtreecommitdiffstats
path: root/accounts/account_manager.go
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 /accounts/account_manager.go
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 'accounts/account_manager.go')
-rw-r--r--accounts/account_manager.go8
1 files changed, 1 insertions, 7 deletions
diff --git a/accounts/account_manager.go b/accounts/account_manager.go
index 34a2c4891..e9eb8f816 100644
--- a/accounts/account_manager.go
+++ b/accounts/account_manager.go
@@ -81,13 +81,7 @@ func (am *Manager) HasAccount(addr []byte) bool {
return false
}
-// Coinbase returns the account address that mining rewards are sent to.
-func (am *Manager) Coinbase() (addr []byte, err error) {
- // TODO: persist coinbase address on disk
- return am.firstAddr()
-}
-
-func (am *Manager) firstAddr() ([]byte, error) {
+func (am *Manager) Primary() (addr []byte, err error) {
addrs, err := am.keyStore.GetKeyAddresses()
if os.IsNotExist(err) {
return nil, ErrNoKeys