Raise version of created blocks, and enforce DERSIG in mempool

This commit is contained in:
Pieter Wuille 2015-02-06 10:42:01 -08:00
parent 989d49921b
commit 3230b329ea
2 changed files with 2 additions and 2 deletions

View File

@ -345,7 +345,7 @@ class CBlockHeader
{
public:
// header
static const int CURRENT_VERSION=2;
static const int CURRENT_VERSION=3;
int nVersion;
uint256 hashPrevBlock;
uint256 hashMerkleRoot;

View File

@ -974,7 +974,7 @@ bool AcceptToMemoryPool(CTxMemPool& pool, CValidationState &state, const CTransa
// Check against previous transactions
// This is done last to help prevent CPU exhaustion denial-of-service attacks.
if (!CheckInputs(tx, state, view, true, SCRIPT_VERIFY_P2SH | SCRIPT_VERIFY_STRICTENC))
if (!CheckInputs(tx, state, view, true, SCRIPT_VERIFY_P2SH | SCRIPT_VERIFY_STRICTENC | SCRIPT_VERIFY_DERSIG))
{
return error("AcceptToMemoryPool: : ConnectInputs failed %s", hash.ToString());
}