diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-27 23:03:49 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-27 23:03:49 +0800 |
commit | 0ac346f7078dba597d60f991c32ddbfd7be167ba (patch) | |
tree | 33a690fa6ef7cbc8584ff2a1f40f85b28b42ac7f /accounts | |
parent | 9f84c78eb5cceb5f413fbdeafe63786f1b958e83 (diff) | |
parent | eb102bf4bb0bff773824ff467fbb2e49c1f6939b (diff) | |
download | dexon-0ac346f7078dba597d60f991c32ddbfd7be167ba.tar dexon-0ac346f7078dba597d60f991c32ddbfd7be167ba.tar.gz dexon-0ac346f7078dba597d60f991c32ddbfd7be167ba.tar.bz2 dexon-0ac346f7078dba597d60f991c32ddbfd7be167ba.tar.lz dexon-0ac346f7078dba597d60f991c32ddbfd7be167ba.tar.xz dexon-0ac346f7078dba597d60f991c32ddbfd7be167ba.tar.zst dexon-0ac346f7078dba597d60f991c32ddbfd7be167ba.zip |
Merge branch 'develop' into rpcargs
Diffstat (limited to 'accounts')
-rw-r--r-- | accounts/account_manager.go | 8 |
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 |