diff options
| author | Andrew Chow <[email protected]> | 2019-07-11 16:14:17 -0400 |
|---|---|---|
| committer | Andrew Chow <[email protected]> | 2020-04-23 13:59:48 -0400 |
| commit | f1ca5feb4ad668a3e1ae543d0addd5f483f1a88f (patch) | |
| tree | 4d2ec3da6f88bb8111a1ba1290955fa57eb69d27 /src/wallet/scriptpubkeyman.cpp | |
| parent | Implement ReturnDestination in DescriptorScriptPubKeyMan (diff) | |
| download | discoin-f1ca5feb4ad668a3e1ae543d0addd5f483f1a88f.tar.xz discoin-f1ca5feb4ad668a3e1ae543d0addd5f483f1a88f.zip | |
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 c0d48c224..cf2882ed6 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 |