bitcoin/bitcoin — pull request #3178 by Diapolo (2013-10-28 12:02:08+00:00)
Title: rpcwallet: use EnsureWalletIsUnlocked() where possible

- replaces a pwalletMain->IsLocked() check
- in keypoolrefill init kpSize to 0 as we have the logic to determine max
kpSize in pwalletMain->TopUpKeyPool() anyway