Disallow v0 transactions as a consensus rule

Closes #1557
This commit is contained in:
Jack Grigg
2016-10-21 23:07:50 -05:00
parent a12eaa2bf2
commit 7ac924cdb7
3 changed files with 18 additions and 0 deletions

View File

@@ -6,6 +6,8 @@
#ifndef BITCOIN_CONSENSUS_CONSENSUS_H
#define BITCOIN_CONSENSUS_CONSENSUS_H
/** 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) */
static const unsigned int MAX_BLOCK_SIZE = 2000000;
/** The maximum allowed number of signature check operations in a block (network rule) */