Reject block versions lower than 4

Closes #1556
This commit is contained in:
Jack Grigg
2016-10-20 15:26:34 -05:00
parent 7ac924cdb7
commit 80f4cdcf8f
4 changed files with 39 additions and 0 deletions

View File

@@ -6,6 +6,8 @@
#ifndef BITCOIN_CONSENSUS_CONSENSUS_H
#define BITCOIN_CONSENSUS_CONSENSUS_H
/** The minimum allowed block version (network rule) */
static const int32_t MIN_BLOCK_VERSION = 4;
/** The minimum allowed transaction version (network rule) */
static const int32_t MIN_TX_VERSION = 1;
/** The maximum allowed size for a serialized block, in bytes (network rule) */