aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/scriptpubkeyman.cpp
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2019-07-11 16:14:17 -0400
committerAndrew Chow <achow101-github@achow101.com>2020-04-23 13:59:48 -0400
commitf1ca5feb4ad668a3e1ae543d0addd5f483f1a88f (patch)
tree4d2ec3da6f88bb8111a1ba1290955fa57eb69d27 /src/wallet/scriptpubkeyman.cpp
parent586b57a9a6b4b12a78f792785b63a5a1743bce0c (diff)
downloadbitcoin-f1ca5feb4ad668a3e1ae543d0addd5f483f1a88f.tar.xz
Implement GetKeypoolOldestTime and only display it if greater than 0
Diffstat (limited to 'src/wallet/scriptpubkeyman.cpp')
-rw-r--r--src/wallet/scriptpubkeyman.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/wallet/scriptpubkeyman.cpp b/src/wallet/scriptpubkeyman.cpp
index c0d48c2242..cf2882ed61 100644
--- a/src/wallet/scriptpubkeyman.cpp
+++ b/src/wallet/scriptpubkeyman.cpp
@@ -1851,7 +1851,9 @@ bool DescriptorScriptPubKeyMan::HavePrivateKeys() const
int64_t DescriptorScriptPubKeyMan::GetOldestKeyPoolTime() const
{
- return GetTime();
+ // This is only used for getwalletinfo output and isn't relevant to descriptor wallets.
+ // The magic number 0 indicates that it shouldn't be displayed so that's what we return.
+ return 0;
}
size_t DescriptorScriptPubKeyMan::KeypoolCountExternalKeys() const