Raven Core
3.0.0
P2P Digital Currency
src
consensus
consensus.cpp
Go to the documentation of this file.
1
// Copyright (c) 2017-2019 The Raven Core developers
2
// Distributed under the MIT software license, see the accompanying
3
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
5
#include "
consensus.h
"
6
#include <
validation.h
>
7
8
unsigned
int
GetMaxBlockWeight
()
9
{
10
// Now that Assets have gone live, we should make checks against the new larger block size only
11
// This is necessary because when the chain loads, it can fail certain blocks(that are valid) when
12
// The asset active state isn't set like during a reindex
13
return
MAX_BLOCK_WEIGHT_RIP2;
14
15
// Old block weight for when assets weren't activated
16
// return MAX_BLOCK_WEIGHT;
17
}
18
19
unsigned
int
GetMaxBlockSerializedSize
()
20
{
21
// Now that Assets have gone live, we should make checks against the new larger block size only
22
// This is necessary because when the chain loads, it can fail certain blocks(that are valid) when
23
// The asset active state isn't set like during a reindex
24
return
MAX_BLOCK_SERIALIZED_SIZE_RIP2;
25
26
// Old block serialized size for when assets weren't activated
27
// return MAX_BLOCK_SERIALIZED_SIZE;
28
}
GetMaxBlockWeight
unsigned int GetMaxBlockWeight()
Definition:
consensus.cpp:8
validation.h
consensus.h
GetMaxBlockSerializedSize
unsigned int GetMaxBlockSerializedSize()
Definition:
consensus.cpp:19
Generated on Mon Jul 29 2019 02:32:17 for Raven Core by
1.8.13