diff --git a/src/script/sign.cpp b/src/script/sign.cpp index f1ac1f411ad..c2ae4ff2ea4 100644 --- a/src/script/sign.cpp +++ b/src/script/sign.cpp @@ -288,18 +288,11 @@ struct Stacks std::vector script; std::vector witness; - Stacks() {} - explicit Stacks(const std::vector& scriptSigStack_) : script(scriptSigStack_), witness() {} + Stacks() = delete; + Stacks(const Stacks&) = delete; explicit Stacks(const SignatureData& data) : witness(data.scriptWitness.stack) { EvalScript(script, data.scriptSig, SCRIPT_VERIFY_STRICTENC, BaseSignatureChecker(), SigVersion::BASE); } - - SignatureData Output() const { - SignatureData result; - result.scriptSig = PushAll(script); - result.scriptWitness.stack = witness; - return result; - } }; }