From 8c8f451be8a14d5b5d8f4f41a37d53c7ba4b38e6 Mon Sep 17 00:00:00 2001 From: Duke Date: Thu, 6 Apr 2023 12:37:10 -0400 Subject: [PATCH] Remove dead code from CheckTransaction() --- src/main.cpp | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 8559372ca..ef0fcfbba 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1422,26 +1422,6 @@ bool ContextualCheckTransaction(int32_t slowflag,const CBlock *block, CBlockInde bool CheckTransaction(uint32_t tiptime,const CTransaction& tx, CValidationState &state, libzcash::ProofVerifier& verifier,int32_t txIndex, int32_t numTxs) { - static uint256 array[64]; static int32_t numbanned,indallvouts; int32_t j,k,n; - if ( *(int32_t *)&array[0] == 0 ) - numbanned = hush_bannedset(&indallvouts,array,(int32_t)(sizeof(array)/sizeof(*array))); - n = tx.vin.size(); - if ( SMART_CHAIN_SYMBOL[0] == 0 ) - { - for (j=0; j= indallvouts) ) - { - static uint32_t counter; - if ( counter++ < 100 ) - printf("MEMPOOL: banned tx.%d being used at ht.%d vout.%d\n",k,(int32_t)chainActive.Tip()->GetHeight(),j); - return(false); - } - } - } - } // Don't count coinbase transactions because mining skews the count if (!tx.IsCoinBase()) { transactionsValidated.increment();