Remove dead code from CheckTransaction()
This commit is contained in:
20
src/main.cpp
20
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,
|
bool CheckTransaction(uint32_t tiptime,const CTransaction& tx, CValidationState &state,
|
||||||
libzcash::ProofVerifier& verifier,int32_t txIndex, int32_t numTxs)
|
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<n; j++)
|
|
||||||
{
|
|
||||||
for (k=0; k<numbanned; k++)
|
|
||||||
{
|
|
||||||
if ( tx.vin[j].prevout.hash == array[k] && hush_checkvout(tx.vin[j].prevout.n,k,indallvouts) != 0 ) //(tx.vin[j].prevout.n == 1 || k >= 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
|
// Don't count coinbase transactions because mining skews the count
|
||||||
if (!tx.IsCoinBase()) {
|
if (!tx.IsCoinBase()) {
|
||||||
transactionsValidated.increment();
|
transactionsValidated.increment();
|
||||||
|
|||||||
Reference in New Issue
Block a user