From 03b419f341d23418be56e060b9861bab65108a6e Mon Sep 17 00:00:00 2001 From: Alessandro Rezzi Date: Tue, 13 Feb 2024 19:26:22 +0100 Subject: [PATCH] [squash]: remove GetSigVersionFromFlags --- src/script/interpreter.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/script/interpreter.cpp b/src/script/interpreter.cpp index 082b841f38401b..fef4806d7c6e69 100644 --- a/src/script/interpreter.cpp +++ b/src/script/interpreter.cpp @@ -1547,10 +1547,6 @@ template PrecomputedTransactionData::PrecomputedTransactionData(const CMutableTr template void PrecomputedTransactionData::Init(const CTransaction& txTo, std::vector&& spent_outputs); template void PrecomputedTransactionData::Init(const CMutableTransaction& txTo, std::vector&& spent_outputs); -SigVersion GetSigVersionFromFlags(unsigned int flags){ - return (flags | SCRIPT_ENABLE_DIP0143) ? SigVersion::DIP0143 : SigVersion::BASE; -} - template uint256 SignatureHash(const CScript& scriptCode, const T& txTo, unsigned int nIn, int nHashType, const CAmount& amount, const PrecomputedTransactionData* cache) {