base class for BTC params
More...
Definition at line 18 of file btc_chain_params.hpp.
#include <btc_chain_params.hpp>
|
virtual uint256 | getPowLimit () const =0 |
|
virtual uint32_t | getPowTargetTimespan () const noexcept=0 |
|
virtual uint32_t | getPowTargetSpacing () const noexcept=0 |
|
virtual bool | getAllowMinDifficultyBlocks () const noexcept=0 |
|
virtual bool | getPowNoRetargeting () const noexcept=0 |
|
virtual bool | EnableTimeAdjustment () const noexcept=0 |
|
uint32_t | getDifficultyAdjustmentInterval () const noexcept |
|
virtual uint32_t | numBlocksForBootstrap () const noexcept=0 |
| minimum number of BTC blocks needed to bootstrap chain More...
|
|
virtual const char * | networkName () const noexcept=0 |
|
virtual uint32_t | maxFutureBlockTime () const noexcept |
|
int32_t | getMaxReorgBlocks () const noexcept |
| by default we store this many last BTC blocks in RAM More...
|
|
uint32_t | preserveBlocksBehindFinal () const noexcept |
| when finalizeBlockImpl is called, this many blocks behind final block will be preserved in RAM. More...
|
|
int32_t | getOldBlocksWindow () const noexcept |
| all blocks further than this number of blocks are considered "old" More...
|
|
◆ EnableTimeAdjustment()
virtual bool altintegration::BtcChainParams::EnableTimeAdjustment |
( |
| ) |
const |
|
pure virtualnoexcept |
◆ getDifficultyAdjustmentInterval()
uint32_t altintegration::BtcChainParams::getDifficultyAdjustmentInterval |
( |
| ) |
const |
|
inlinenoexcept |
Definition at line 27 of file btc_chain_params.hpp.
27 {
28 return getPowTargetTimespan() / getPowTargetSpacing();
29 }
◆ getMaxReorgBlocks()
int32_t altintegration::BtcChainParams::getMaxReorgBlocks |
( |
| ) |
const |
|
inlinenoexcept |
Definition at line 38 of file btc_chain_params.hpp.
38 {
39 VBK_ASSERT(static_cast<uint32_t>(mMaxReorgBlocks) >=
40 getDifficultyAdjustmentInterval());
41 return mMaxReorgBlocks;
42 }
◆ getOldBlocksWindow()
int32_t altintegration::BtcChainParams::getOldBlocksWindow |
( |
| ) |
const |
|
inlinenoexcept |
◆ maxFutureBlockTime()
virtual uint32_t altintegration::BtcChainParams::maxFutureBlockTime |
( |
| ) |
const |
|
inlinevirtualnoexcept |
◆ numBlocksForBootstrap()
virtual uint32_t altintegration::BtcChainParams::numBlocksForBootstrap |
( |
| ) |
const |
|
pure virtualnoexcept |
◆ preserveBlocksBehindFinal()
uint32_t altintegration::BtcChainParams::preserveBlocksBehindFinal |
( |
| ) |
const |
|
inlinenoexcept |
◆ mMaxFutureBlockTime
uint32_t altintegration::BtcChainParams::mMaxFutureBlockTime = 2 * 60 * 60 |
|
protected |
◆ mMaxReorgBlocks
◆ mOldBlocksWindow
uint32_t altintegration::BtcChainParams::mOldBlocksWindow = 1000 |
The documentation for this struct was generated from the following file: