aboutsummaryrefslogtreecommitdiffstats
path: root/accounts
diff options
context:
space:
mode:
Diffstat (limited to 'accounts')
-rw-r--r--accounts/account_manager.go13
-rw-r--r--accounts/accounts_test.go2
2 files changed, 1 insertions, 14 deletions
diff --git a/accounts/account_manager.go b/accounts/account_manager.go
index e79ec51a2..4519c8420 100644
--- a/accounts/account_manager.go
+++ b/accounts/account_manager.go
@@ -81,19 +81,6 @@ func (am *Manager) HasAccount(addr common.Address) bool {
return false
}
-func (am *Manager) Primary() (addr common.Address, err error) {
- addrs, err := am.keyStore.GetKeyAddresses()
- if os.IsNotExist(err) {
- return common.Address{}, ErrNoKeys
- } else if err != nil {
- return common.Address{}, err
- }
- if len(addrs) == 0 {
- return common.Address{}, ErrNoKeys
- }
- return addrs[0], nil
-}
-
func (am *Manager) DeleteAccount(address common.Address, auth string) error {
return am.keyStore.DeleteKey(address, auth)
}
diff --git a/accounts/accounts_test.go b/accounts/accounts_test.go
index 6065fa8e4..8bd70880c 100644
--- a/accounts/accounts_test.go
+++ b/accounts/accounts_test.go
@@ -18,7 +18,7 @@ func TestSign(t *testing.T) {
pass := "" // not used but required by API
a1, err := am.NewAccount(pass)
toSign := randentropy.GetEntropyCSPRNG(32)
- am.Unlock(a1.Address, "", 0)
+ am.Unlock(a1.Address, "")
_, err = am.Sign(a1, toSign)
if err != nil {
ca7f918683'>- Update to 7.2.1miwi2006-12-0926-724/+518 * o Update to 0.78clsung2006-11-023-5/+5 * Update to version 1.3.37+30.23+2.8.28. this version has mod_rewrite buffer ...lev2006-11-013-48/+13 * Update to 1.3.37+30.23. This version has mod_rewrite buffer overflow fixed.lev2006-11-013-44/+9 * KDE 3.5.4 / KOffice 1.5.2lofi2006-09-1310-62/+18 * - Fix WWW.jmelo2006-09-051-1/+1 * - update from version 1.0 to 4.1;bsam2006-08-254-24/+21 * - update to 0.6itetcu2006-08-195-10/+18 * Add port www/xpi-imagezoom:sat2006-08-094-37/+0 * Reset bouncing maintainer address ip@doom.homeunix.org. We hope to see himlinimon2006-07-221-1/+1 * Concisify commentsat2006-07-211-1/+1 * Add port russian/xpi-tabextensions:sat2006-07-214-0/+41 * Add port russian/xpi-imagezoom:sat2006-07-214-0/+37 * All dictionaries can be installed separately:thierry2006-07-15