diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-02-11 23:02:00 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2017-02-13 20:00:12 +0800 |
commit | e99c788155ddd754c73d2c81b6051dcbd42e6575 (patch) | |
tree | 1b219c22d8e288c8b12c9125adb709686664aa9e /accounts/keystore/account_cache.go | |
parent | c7022c1a0c2aa4c0326129ef483b27bcd6c1262d (diff) | |
download | dexon-e99c788155ddd754c73d2c81b6051dcbd42e6575.tar.gz dexon-e99c788155ddd754c73d2c81b6051dcbd42e6575.tar.zst dexon-e99c788155ddd754c73d2c81b6051dcbd42e6575.zip |
accounts: ledger and HD review fixes
- Handle a data race where a Ledger drops between list and open
- Prolong Ledger tx confirmation window to 30 days from 1 minute
- Simplify Ledger chainid-signature calculation and validation
- Simplify Ledger USB APDU request chunking algorithm
- Silence keystore account cache notifications for manual actions
- Only enable self derivations if wallet open succeeds
Diffstat (limited to 'accounts/keystore/account_cache.go')
-rw-r--r-- | accounts/keystore/account_cache.go | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/accounts/keystore/account_cache.go b/accounts/keystore/account_cache.go index e2f826250..3fae3ef5b 100644 --- a/accounts/keystore/account_cache.go +++ b/accounts/keystore/account_cache.go @@ -113,11 +113,6 @@ func (ac *accountCache) add(newAccount accounts.Account) { copy(ac.all[i+1:], ac.all[i:]) ac.all[i] = newAccount ac.byAddr[newAccount.Address] = append(ac.byAddr[newAccount.Address], newAccount) - - select { - case ac.notify <- struct{}{}: - default: - } } // note: removed needs to be unique here (i.e. both File and Address must be set). @@ -131,10 +126,6 @@ func (ac *accountCache) delete(removed accounts.Account) { } else { ac.byAddr[removed.Address] = ba } - select { - case ac.notify <- struct{}{}: - default: - } } func removeAccount(slice []accounts.Account, elem accounts.Account) []accounts.Account { |