This PR adds a test case for GetTransactionSigOpCost to check that P2SH sig ops are only counted when SCRIPT_VERIFY_P2SH flag is set.
Kills the following mutant:
0diff --git a/src/consensus/tx_verify.cpp b/src/consensus/tx_verify.cpp
1index 9d09872597..cc7cdaaf8f 100644
2--- a/src/consensus/tx_verify.cpp
3+++ b/src/consensus/tx_verify.cpp
4@@ -147,7 +147,7 @@ int64_t GetTransactionSigOpCost(const CTransaction& tx, const CCoinsViewCache& i
5 if (tx.IsCoinBase())
6 return nSigOps;
7
8- if (flags & SCRIPT_VERIFY_P2SH) {
9+ if (1==1) {
10 nSigOps += GetP2SHSigOpCount(tx, inputs) * WITNESS_SCALE_FACTOR;
11 }