Implement GetKeypoolOldestTime and only display it if greater than 0

This commit is contained in:
Andrew Chow
2019-07-11 16:14:17 -04:00
parent 586b57a9a6
commit f1ca5feb4a
2 changed files with 8 additions and 3 deletions

View File

@@ -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