From c7db88af71b3204171f33399aa4f33b40a4f7cd9 Mon Sep 17 00:00:00 2001 From: Antoine Poinsot Date: Thu, 29 Jun 2023 11:53:03 +0200 Subject: [PATCH] descriptor: assert we never parse a sane miniscript with no pubkey --- src/script/descriptor.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/script/descriptor.cpp b/src/script/descriptor.cpp index 787bf43127..717755280e 100644 --- a/src/script/descriptor.cpp +++ b/src/script/descriptor.cpp @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #include @@ -1566,6 +1567,9 @@ std::unique_ptr ParseScript(uint32_t& key_exp_index, Span(std::move(parser.m_keys), std::move(node)); } }