aboutsummaryrefslogtreecommitdiff
path: root/src/wallet
diff options
context:
space:
mode:
authorfurszy <matiasfurszyfer@protonmail.com>2023-06-20 12:34:26 -0300
committerfurszy <matiasfurszyfer@protonmail.com>2023-06-28 09:37:16 -0300
commit6a9510d2dabde1c9ee6c4226e3d16ca32eb48ac5 (patch)
tree1c10f96caae099281b1320d9f5d6da52c110cffd /src/wallet
parent97a965d98f1582ea1b1377bd258c9088380e1b8b (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.cpp2
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; }