From cdaa3a58dc16d6a27248dc4cdec2dd1909eee7fe Mon Sep 17 00:00:00 2001 From: furszy Date: Tue, 26 Nov 2024 18:03:17 -0500 Subject: [PATCH] wallet: bugfix, stop treating multisig consensus-invalid/unspendable scripts as ours Ensure legacy wallet migration skips the never standard bare multisig with +3 keys and consensus-invalid multisig scripts. Treating them as valid causes migration to crash because we are enforcing this rules within the descriptors parsing logic. --- src/wallet/scriptpubkeyman.cpp | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/wallet/scriptpubkeyman.cpp b/src/wallet/scriptpubkeyman.cpp index 62384056dc..9a6d2b809b 100644 --- a/src/wallet/scriptpubkeyman.cpp +++ b/src/wallet/scriptpubkeyman.cpp @@ -7,6 +7,7 @@ #include #include #include +#include #include