upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp5
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 }