PIVX Core  5.6.99
P2P Digital Currency
consensus.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2010 Satoshi Nakamoto
2 // Copyright (c) 2009-2016 The Bitcoin Core developers
3 // Copyright (c) 2019-2020 The PIVX Core developers
4 // Distributed under the MIT software license, see the accompanying
5 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
6 
7 #ifndef PIVX_CONSENSUS_CONSENSUS_H
8 #define PIVX_CONSENSUS_CONSENSUS_H
9 
10 #include "amount.h"
11 #include <stdint.h>
12 
14 static const unsigned int MAX_BLOCK_SIZE_CURRENT = 2000000;
15 static const unsigned int MAX_BLOCK_SIZE_LEGACY = 1000000;
16 
18 static const unsigned int MAX_TX_SIZE_AFTER_SAPLING = 400000;
19 
21 static const unsigned int MAX_BLOCK_SHIELDED_TXES_SIZE = 750000;
22 
24 static const unsigned int MAX_BLOCK_SIGOPS_CURRENT = MAX_BLOCK_SIZE_CURRENT / 50;
25 static const unsigned int MAX_BLOCK_SIGOPS_LEGACY = MAX_BLOCK_SIZE_LEGACY / 50;
26 
28 static const unsigned int MAX_TX_SIGOPS_CURRENT = MAX_BLOCK_SIGOPS_CURRENT / 5;
29 static const unsigned int MAX_TX_SIGOPS_LEGACY = MAX_BLOCK_SIGOPS_LEGACY / 5;
30 
32 static const CAmount MIN_COLDSTAKING_AMOUNT = 1 * COIN;
33 
35 static const int DEFAULT_MAX_REORG_DEPTH = 100;
36 
39 static constexpr unsigned int LOCKTIME_VERIFY_SEQUENCE = (1 << 0);
41 static constexpr unsigned int LOCKTIME_MEDIAN_TIME_PAST = (1 << 1);
42 
43 #endif // PIVX_CONSENSUS_CONSENSUS_H
int64_t CAmount
Amount in PIV (Can be negative)
Definition: amount.h:13