wallet/spkm: make GetOldestKeyPoolTime() const

The method checks the oldest key time for key pools and returns the oldest. It does no modifications.
This commit is contained in:
Karl-Johan Alm
2020-03-02 16:54:59 +09:00
parent 22d329ad0e
commit 227b9dd2d6
4 changed files with 5 additions and 5 deletions

View File

@@ -194,7 +194,7 @@ public:
//! The action to do when the DB needs rewrite
virtual void RewriteDB() {}
virtual int64_t GetOldestKeyPoolTime() { return GetTime(); }
virtual int64_t GetOldestKeyPoolTime() const { return GetTime(); }
virtual size_t KeypoolCountExternalKeys() const { return 0; }
virtual unsigned int GetKeyPoolSize() const { return 0; }
@@ -336,7 +336,7 @@ public:
void RewriteDB() override;
int64_t GetOldestKeyPoolTime() override;
int64_t GetOldestKeyPoolTime() const override;
size_t KeypoolCountExternalKeys() const override;
unsigned int GetKeyPoolSize() const override;