Commit 93870764 authored by Mark Brooker's avatar Mark Brooker

Revert additional check

parent eafdcde7
Pipeline #1188 failed with stage
in 12 minutes and 51 seconds
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2014-2018 The Crown developers
// Copyright (c) 2014-2020 The Crown developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
......@@ -972,11 +972,6 @@ bool CheckTransaction(const CTransaction& tx, CValidationState &state)
if (tx.IsCoinBase() && tx.nType != TRANSACTION_NORMAL)
return state.DoS(100, false, REJECT_INVALID, "bad-txns-cb-type");
}
// all version 1 transactions are normal
else if (tx.nType != TRANSACTION_NORMAL)
{
return state.DoS(100, false, REJECT_INVALID, "bad-txns-type");
}
// Basic checks that don't depend on any context
if (tx.vin.empty())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment