We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7b52130 + 8136352 commit 91f3f1aCopy full SHA for 91f3f1a
backend/backend.go
@@ -910,13 +910,14 @@ func (backend *Backend) SetWatchonly(watchonly bool) error {
910
nil,
911
)
912
}
913
+
914
+ accounts := accountsList(backend.Accounts())
915
// When enabling watchonly, we turn the currently loaded accounts into watch-only accounts.
916
t := true
917
return backend.AccountSetWatch(
918
func(account *config.Account) bool {
919
// Apply to each currently loaded account.
- defer backend.accountsAndKeystoreLock.RLock()()
- return backend.accounts.lookup(account.Code) != nil
920
+ return accounts.lookup(account.Code) != nil
921
},
922
&t,
923
0 commit comments