From 691161d419fe3d82d7a49b511ef80e2b24332aac Mon Sep 17 00:00:00 2001 From: jtimon Date: Sat, 24 Jan 2015 15:29:29 +0100 Subject: Consensus: Create consensus/consensus.h with some constants --- src/consensus/consensus.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/consensus/consensus.h (limited to 'src/consensus/consensus.h') diff --git a/src/consensus/consensus.h b/src/consensus/consensus.h new file mode 100644 index 0000000000..9c5b7d4ffb --- /dev/null +++ b/src/consensus/consensus.h @@ -0,0 +1,18 @@ +// Copyright (c) 2009-2010 Satoshi Nakamoto +// Copyright (c) 2009-2014 The Bitcoin Core developers +// Distributed under the MIT software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. + +#ifndef BITCOIN_CONSENSUS_CONSENSUS_H +#define BITCOIN_CONSENSUS_CONSENSUS_H + +/** The maximum allowed size for a serialized block, in bytes (network rule) */ +static const unsigned int MAX_BLOCK_SIZE = 1000000; +/** The maximum allowed number of signature check operations in a block (network rule) */ +static const unsigned int MAX_BLOCK_SIGOPS = MAX_BLOCK_SIZE/50; +/** Coinbase transaction outputs can only be spent after this number of new blocks (network rule) */ +static const int COINBASE_MATURITY = 100; +/** Threshold for nLockTime: below this value it is interpreted as block number, otherwise as UNIX timestamp. */ +static const unsigned int LOCKTIME_THRESHOLD = 500000000; // Tue Nov 5 00:53:20 1985 UTC + +#endif // BITCOIN_CONSENSUS_CONSENSUS_H -- cgit v1.2.3