Skip to content

Commit d68fa4a

Browse files
committed
fixup! wallet: Add SilentPaymentsSPKM
1 parent 21da872 commit d68fa4a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/wallet/silentpayments.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -352,8 +352,8 @@ std::optional<int64_t> SilentPaymentsSPKM::GetOldestKeyPoolTime() const
352352

353353
unsigned int SilentPaymentsSPKM::GetKeyPoolSize() const
354354
{
355-
// Keypool size doesn't make sense for silent payments, just return 1
356-
return 1;
355+
// Keypool size doesn't make sense for silent payments, just return 0
356+
return 0;
357357
}
358358

359359
int64_t SilentPaymentsSPKM::GetTimeFirstKey() const

src/wallet/silentpayments.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ class SilentPaymentsSPKM : public ScriptPubKeyMan
100100

101101
bool TopUp(unsigned int size = 0) override;
102102

103-
bool IsHDEnabled() const override { return false; }
103+
// HD isn't really a concept that makes sense for silent payments, just return true unconditionally to avoid breaking other stuff
104+
bool IsHDEnabled() const override { return true; }
104105
bool CanGetAddresses(bool internal = false) const override { return true; }
105106
bool HavePrivateKeys() const override
106107
{

0 commit comments

Comments
 (0)