mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 06:58:57 +01:00
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.
This commit is contained in:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user