diff options
author | Andrew Chow <achow101-github@achow101.com> | 2019-07-11 16:14:17 -0400 |
---|---|---|
committer | Andrew Chow <achow101-github@achow101.com> | 2020-04-23 13:59:48 -0400 |
commit | f1ca5feb4ad668a3e1ae543d0addd5f483f1a88f (patch) | |
tree | 4d2ec3da6f88bb8111a1ba1290955fa57eb69d27 /src/wallet/scriptpubkeyman.cpp | |
parent | 586b57a9a6b4b12a78f792785b63a5a1743bce0c (diff) |
Implement GetKeypoolOldestTime and only display it if greater than 0
Diffstat (limited to 'src/wallet/scriptpubkeyman.cpp')
-rw-r--r-- | src/wallet/scriptpubkeyman.cpp | 4 |
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 |