From 7f969c6db5d0d081ce4dba89b4eca64897aa8315 Mon Sep 17 00:00:00 2001 From: jholdstock Date: Tue, 30 Jun 2020 10:17:05 +0100 Subject: [PATCH] Dont fail wallet connection if wallet is locked --- rpc/dcrwallet.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/rpc/dcrwallet.go b/rpc/dcrwallet.go index 221b6f3..e0b690e 100644 --- a/rpc/dcrwallet.go +++ b/rpc/dcrwallet.go @@ -113,10 +113,9 @@ func (w *WalletConnect) Clients(ctx context.Context, netParams *chaincfg.Params) log.Errorf("wallet '%s' has voting disabled", c.String()) } if !walletInfo.Unlocked { - // If wallet is locked, ImportPrivKey cannot be used. + // SetVoteChoice can still be used even if the wallet is locked, so + // just log an error here. Don't count this as a failed connection. log.Errorf("wallet '%s' is not unlocked", c.String()) - failedConnections++ - continue } walletClients = append(walletClients, walletRPC)