diff options
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 68ae44c..82a98d2 100644 --- a/src/main.cpp +++ b/src/main.cpp | |||
| @@ -217,6 +217,11 @@ vector<unsigned char> GetKeyFromPool() | |||
| 217 | vector<unsigned char> vchPubKey = mi->second; | 217 | vector<unsigned char> vchPubKey = mi->second; |
| 218 | mapKeyPool.erase(mi); | 218 | mapKeyPool.erase(mi); |
| 219 | CWalletDB().ErasePool(nIndex); | 219 | CWalletDB().ErasePool(nIndex); |
| 220 | // Leave the wallet with a full backup window after each draw too, | ||
| 221 | // not only immediately before a draw. If topping up fails, the key | ||
| 222 | // already chosen is still safe to use -- its private half was | ||
| 223 | // written before it entered the pool. | ||
| 224 | TopUpKeyPool(); | ||
| 220 | return vchPubKey; | 225 | return vchPubKey; |
| 221 | } | 226 | } |
| 222 | } | 227 | } |