Delete commented out code
This commit is contained in:
16
src/main.cpp
16
src/main.cpp
@@ -1732,22 +1732,6 @@ bool AcceptToMemoryPool(CTxMemPool& pool, CValidationState &state, const CTransa
|
||||
tiptime = (uint32_t)time(NULL);
|
||||
else tiptime = (uint32_t)chainActive.LastTip()->nTime;
|
||||
|
||||
/*
|
||||
// Node operator can choose to reject tx by number of transparent inputs
|
||||
static_assert(std::numeric_limits<size_t>::max() >= std::numeric_limits<int64_t>::max(), "size_t too small");
|
||||
const size_t limit = 0; //(size_t) GetArg("-mempooltxinputlimit", 0);
|
||||
// Limit is ignored if Overwinter is active, which is the case on HUSH3 and all HAC's
|
||||
if (NetworkUpgradeActive(nextBlockHeight, Params().GetConsensus(), Consensus::UPGRADE_OVERWINTER)) {
|
||||
limit = 0;
|
||||
}
|
||||
if (limit > 0) {
|
||||
size_t n = tx.vin.size();
|
||||
if (n > limit) {
|
||||
LogPrint("mempool", "Dropping txid %s : too many transparent inputs %zu > limit %zu\n", tx.GetHash().ToString(), n, limit );
|
||||
return false;
|
||||
}
|
||||
}
|
||||
*/
|
||||
auto verifier = libzcash::ProofVerifier::Strict();
|
||||
|
||||
if (!CheckTransaction(tiptime,tx, state, verifier, 0, 0))
|
||||
|
||||
Reference in New Issue
Block a user