diff --git a/src/script/miniscript.h b/src/script/miniscript.h index ac0d046942..80c12ee1f5 100644 --- a/src/script/miniscript.h +++ b/src/script/miniscript.h @@ -1687,6 +1687,10 @@ public: : Node(internal::NoDupCheck{}, ctx.MsContext(), nt, std::move(sub), val) { DuplicateKeyCheck(ctx); } template Node(const Ctx& ctx, Fragment nt, uint32_t val = 0) : Node(internal::NoDupCheck{}, ctx.MsContext(), nt, val) { DuplicateKeyCheck(ctx); } + + // Delete copy constructor and assignment operator, use Clone() instead + Node(const Node&) = delete; + Node& operator=(const Node&) = delete; }; namespace internal {