diff options
| author | practicalswift <[email protected]> | 2017-06-04 22:45:22 +0200 |
|---|---|---|
| committer | practicalswift <[email protected]> | 2017-06-05 00:52:36 +0200 |
| commit | 90593ed92cfd5d49900a6fb6c2c10a482ab9fdbb (patch) | |
| tree | 1f830a3679ef00b774dc8ac6b216366f2ed52a68 /src/wallet/wallet.cpp | |
| parent | Merge #10447: Make bitcoind invalid argument error message specific (diff) | |
| download | discoin-90593ed92cfd5d49900a6fb6c2c10a482ab9fdbb.tar.xz discoin-90593ed92cfd5d49900a6fb6c2c10a482ab9fdbb.zip | |
Limit variable scope
Diffstat (limited to 'src/wallet/wallet.cpp')
| -rw-r--r-- | src/wallet/wallet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index bc9843524..2eed116dd 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -3196,10 +3196,10 @@ void CWallet::ReturnKey(int64_t nIndex) bool CWallet::GetKeyFromPool(CPubKey& result, bool internal) { - int64_t nIndex = 0; CKeyPool keypool; { LOCK(cs_wallet); + int64_t nIndex = 0; ReserveKeyFromKeyPool(nIndex, keypool, internal); if (nIndex == -1) { |