diff options
| author | jtimon <[email protected]> | 2015-01-24 15:29:29 +0100 |
|---|---|---|
| committer | Jorge Timón <[email protected]> | 2015-04-20 21:27:51 +0200 |
| commit | 691161d419fe3d82d7a49b511ef80e2b24332aac (patch) | |
| tree | fb657b9aba2aa42ff9948fcfc428845b60384c35 /src/consensus/consensus.h | |
| parent | Merge pull request #5911 (diff) | |
| download | discoin-691161d419fe3d82d7a49b511ef80e2b24332aac.tar.xz discoin-691161d419fe3d82d7a49b511ef80e2b24332aac.zip | |
Consensus: Create consensus/consensus.h with some constants
Diffstat (limited to 'src/consensus/consensus.h')
| -rw-r--r-- | src/consensus/consensus.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/consensus/consensus.h b/src/consensus/consensus.h new file mode 100644 index 000000000..9c5b7d4ff --- /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 |