bitcoin/bitcoin — pull request #3177 by Diapolo (2013-10-28 11:01:26+00:00)
Title: rpcwallet: use EnsureWalletIsUnlocked() where possible

- replaces pwalletMain->IsLocked() checks, which mostly did not even throw
an error
- in keypoolrefill init kpSize to 0 as we have the logic to determine max
kpSize in pwalletMain->TopUpKeyPool() anyway