aboutsummaryrefslogtreecommitdiff
path: root/db.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'db.cpp')
-rw-r--r--db.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/db.cpp b/db.cpp
index e606e5d79d..9657cbf98b 100644
--- a/db.cpp
+++ b/db.cpp
@@ -908,3 +908,12 @@ vector<unsigned char> CWalletDB::GetKeyFromKeyPool()
KeepKey(nIndex);
return keypool.vchPubKey;
}
+
+int64 CWalletDB::GetOldestKeyPoolTime()
+{
+ int64 nIndex = 0;
+ CKeyPool keypool;
+ ReserveKeyFromKeyPool(nIndex, keypool);
+ ReturnKey(nIndex);
+ return keypool.nTime;
+}