aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet.h
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2021-10-30 22:19:22 +0300
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2021-11-03 10:35:47 +0200
commit3e4f069d23cd2ea5de8fa3c4b1a761ab097ad56f (patch)
treeadb1abecbd5e4f80994e48d8f44e10f767d0e8c7 /src/wallet/wallet.h
parent7efc628539573af4b4a76d93b853cc46e9e52eae (diff)
downloadbitcoin-3e4f069d23cd2ea5de8fa3c4b1a761ab097ad56f.tar.xz
wallet, refactor: Make GetOldestKeyPoolTime return type std::optional
This change gets rid of the magic number 0 in the DescriptorScriptPubKeyMan::GetOldestKeyPoolTime() function. No behavior change.
Diffstat (limited to 'src/wallet/wallet.h')
-rw-r--r--src/wallet/wallet.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h
index c911eb461c..96fb84a2cf 100644
--- a/src/wallet/wallet.h
+++ b/src/wallet/wallet.h
@@ -628,7 +628,7 @@ public:
size_t KeypoolCountExternalKeys() const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet);
bool TopUpKeyPool(unsigned int kpSize = 0);
- int64_t GetOldestKeyPoolTime() const;
+ std::optional<int64_t> GetOldestKeyPoolTime() const;
std::set<CTxDestination> GetLabelAddresses(const std::string& label) const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet);