6#ifndef ALT_INTEGRATION_VERIBLOCK_CONSTS_HPP
7#define ALT_INTEGRATION_VERIBLOCK_CONSTS_HPP
47constexpr const auto HISTORY_FOR_TIMESTAMP_AVERAGE = 20;
49constexpr const auto VBK_MINIMUM_TIMESTAMP_ONSET_BLOCK_HEIGHT = 110000;
124constexpr const auto VBK_MAXIMUM_DIFFICULTY =
125 "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF";
constexpr const auto MAX_BTCADDON_REFS
absolute maximum of 'refs' for BTC addon
constexpr const auto MAX_POPDATA_ATV
absolute maximum number of ATV blocks per ALT block
constexpr const auto MAX_LAYER_COUNT_MERKLE
max total layers in merkle paths
constexpr const auto MAX_OUTPUTS_COUNT
NodeCore is using byte value when serializing outputs so we limit to 255.
constexpr const auto ATV_ID_SIZE
size of ATV id
static const int32_t ALT_MAX_REORG_BLOCKS_MIN_VALUE
minimum number of blocks in ALT tree
static const int32_t BTC_MAX_REORG_BLOCKS_MIN_VALUE
minimum number of blocks in BTC tree
constexpr const auto VBK_PREVIOUS_KEYSTONE_HASH_SIZE
size of VBK previous keystone hash size
constexpr const auto VBK_PREVIOUS_BLOCK_HASH_SIZE
size of VBK previous block hash size
constexpr const auto VBK_PUBLICATIONDATA_SIZE
65 VBK header + 15 POP bytes of Address
constexpr const auto SHA256_HASH_SIZE
sha256 hash size
constexpr const auto MAX_POPDATA_VBK
absolute maximum number of VBK blocks per ALT block
constexpr const auto VBK_ETHASH_EPOCH_LENGTH
size of 1 ethash epoch in progpow
constexpr const auto MAX_CONTEXT_SIZE_PUBLICATION_DATA
maximum context size in PublicationData
constexpr const uint32_t BTC_HEADER_SIZE
Bitcoin header size.
constexpr const auto ADDRESS_POP_DATA_SIZE_PROGPOW
VTB contains BtcTx, which contains POP-miner's address and endorsed VBK header.
constexpr const auto MAX_PUBLICATIONDATA_SIZE
absolute maximum size for PublicationData
constexpr const auto VBK_MAX_CALCULATED_EPOCHS_SIZE
maximum number of Ethash cache sizes stored in this library.
TxType
Veriblock transaction type.
@ VBK_POP_TX
pop transaction
@ VBK_TX
regular transaction
constexpr const uint32_t VBK_HEADER_SIZE_VBLAKE
pre-progpow VBK header size
constexpr const auto BTC_BLOCK_HASH_SIZE
size of BTC block hash
constexpr const auto MAX_HEADER_SIZE_PUBLICATION_DATA
maximum header size in PublicationData
constexpr const auto MAX_SIGNATURE_SIZE
ASN.1/DER ECDSA encoding max value.
constexpr const auto MAX_ALT_HASH_SIZE
absolute maximum allowed size for altchain hash
constexpr const auto MAX_VBKPOPTX_PER_VBK_BLOCK
absolute maximum number of PopTxes (VTBs) per VBK block
constexpr const auto MAX_PAYOUT_INFO_SIZE
max payout info size.
constexpr const auto VBK_ID_SIZE
size of VbkBlock id
constexpr const auto VTB_ID_SIZE
size of VTB id
constexpr const auto MAX_PUBLIC_KEY_SIZE
X509 encoding. Max value is based on experimental data.
constexpr const auto MAX_PAYOUT
absolute maximum number of pauouts per ALT block
constexpr const uint32_t VBK_HEADER_SIZE_PROGPOW
post-progpow VBK header size
constexpr const auto VBK_ADDRESS_SIZE
VBK address size in bytes.
constexpr const auto MAX_BTC_BLOCKS_IN_VBKPOPTX
maximum total BTC blocks in VTB blockOfProofContext
constexpr const auto BTC_TX_MAX_RAW_SIZE
maximum possible BTC TX serialized size.
constexpr const auto MIN_ALT_HASH_SIZE
minimum allowed size of altchain hash
constexpr const auto MAX_POPDATA_SIZE
maximum size of single PopData in a single ALT block, in bytes.
constexpr const auto MAX_POPDATA_VTB
absolute maximum number of VTB blocks per ALT block
constexpr const auto VBK_MERKLE_ROOT_HASH_SIZE
size of VBK merkle root
static const int32_t VBK_MAX_REORG_BLOCKS_MIN_VALUE
minimum number of blocks in VBK tree
constexpr const auto VBK_ETHASH_EPOCH_OFFSET
we start at this epoch
constexpr const auto VBK_BLOCK_HASH_SIZE
size of VBK block hash