mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 06:06:44 +00:00
Merge 103a518b3d into 2d4c228933
This commit is contained in:
commit
a58afb320c
1 changed files with 1 additions and 1 deletions
|
|
@ -78,8 +78,8 @@ func (am *Manager) DeleteAccount(address common.Address, auth string) error {
|
||||||
|
|
||||||
func (am *Manager) Sign(a Account, toSign []byte) (signature []byte, err error) {
|
func (am *Manager) Sign(a Account, toSign []byte) (signature []byte, err error) {
|
||||||
am.mutex.RLock()
|
am.mutex.RLock()
|
||||||
defer am.mutex.RUnlock()
|
|
||||||
unlockedKey, found := am.unlocked[a.Address]
|
unlockedKey, found := am.unlocked[a.Address]
|
||||||
|
am.mutex.RUnlock()
|
||||||
if !found {
|
if !found {
|
||||||
return nil, ErrLocked
|
return nil, ErrLocked
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue