diff options
author | furszy <matiasfurszyfer@protonmail.com> | 2023-06-20 12:34:26 -0300 |
---|---|---|
committer | furszy <matiasfurszyfer@protonmail.com> | 2023-06-28 09:37:16 -0300 |
commit | 6a9510d2dabde1c9ee6c4226e3d16ca32eb48ac5 (patch) | |
tree | 1c10f96caae099281b1320d9f5d6da52c110cffd /src/wallet | |
parent | 97a965d98f1582ea1b1377bd258c9088380e1b8b (diff) |
wallet: bugfix, always use apostrophe for spkm descriptor ID
As we update the descriptor's db record every time that
the wallet is loaded (at `TopUp` time), if the spkm ID differs
from the one in db, the wallet will enter in an unrecoverable
corruption state, and no soft version will be able to open
it anymore.
Because we cannot change the past, to stay compatible between
releases, we need to always use the apostrophe version for the
spkm IDs.
Diffstat (limited to 'src/wallet')
-rw-r--r-- | src/wallet/test/walletload_tests.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/test/walletload_tests.cpp b/src/wallet/test/walletload_tests.cpp index 58166ae492..1bd2bf012f 100644 --- a/src/wallet/test/walletload_tests.cpp +++ b/src/wallet/test/walletload_tests.cpp @@ -20,7 +20,7 @@ public: explicit DummyDescriptor(const std::string& descriptor) : desc(descriptor) {}; ~DummyDescriptor() = default; - std::string ToString() const override { return desc; } + std::string ToString(bool compat_format) const override { return desc; } std::optional<OutputType> GetOutputType() const override { return OutputType::UNKNOWN; } bool IsRange() const override { return false; } |