veriblock-pop-cpp
C++11 Libraries for leveraging VeriBlock Proof-Of-Proof blockchain technology.
altintegration::BtcChainParamsRegTest Struct Reference

regtest network params in Bitcoin chain. More...

Detailed Description

Definition at line 156 of file btc_chain_params.hpp.

#include <btc_chain_params.hpp>

+ Inheritance diagram for altintegration::BtcChainParamsRegTest:
+ Collaboration diagram for altintegration::BtcChainParamsRegTest:

Public Member Functions

bool EnableTimeAdjustment () const noexcept override
 time adjustment is disabled in regtest mode More...
 
const char * networkName () const noexcept override
 
uint32_t numBlocksForBootstrap () const noexcept override
 minimum number of BTC blocks needed to bootstrap chain More...
 
uint256 getPowLimit () const override
 
uint32_t getPowTargetTimespan () const noexcept override
 
uint32_t getPowTargetSpacing () const noexcept override
 
bool getAllowMinDifficultyBlocks () const noexcept override
 
bool getPowNoRetargeting () const noexcept override
 
- Public Member Functions inherited from altintegration::BtcChainParams
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...
 

Additional Inherited Members

- Public Attributes inherited from altintegration::BtcChainParams
uint32_t mOldBlocksWindow = 1000
 
int32_t mMaxReorgBlocks = BTC_MAX_REORG_BLOCKS_MIN_VALUE
 
- Protected Attributes inherited from altintegration::BtcChainParams
uint32_t mMaxFutureBlockTime = 2 * 60 * 60
 

Member Function Documentation

◆ EnableTimeAdjustment()

bool altintegration::BtcChainParamsRegTest::EnableTimeAdjustment ( ) const
inlineoverridevirtualnoexcept

Implements altintegration::BtcChainParams.

Definition at line 160 of file btc_chain_params.hpp.

160{ return false; }

◆ getAllowMinDifficultyBlocks()

bool altintegration::BtcChainParamsRegTest::getAllowMinDifficultyBlocks ( ) const
inlineoverridevirtualnoexcept

Implements altintegration::BtcChainParams.

Definition at line 175 of file btc_chain_params.hpp.

175{ return true; }

◆ getPowLimit()

uint256 altintegration::BtcChainParamsRegTest::getPowLimit ( ) const
inlineoverridevirtual

Implements altintegration::BtcChainParams.

Definition at line 166 of file btc_chain_params.hpp.

166 {
167 return uint256::fromHex(
168 "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7f");
169 }

◆ getPowNoRetargeting()

bool altintegration::BtcChainParamsRegTest::getPowNoRetargeting ( ) const
inlineoverridevirtualnoexcept

Implements altintegration::BtcChainParams.

Definition at line 176 of file btc_chain_params.hpp.

176{ return true; }

◆ getPowTargetSpacing()

uint32_t altintegration::BtcChainParamsRegTest::getPowTargetSpacing ( ) const
inlineoverridevirtualnoexcept

Implements altintegration::BtcChainParams.

Definition at line 174 of file btc_chain_params.hpp.

174{ return 10 * 60; }

◆ getPowTargetTimespan()

uint32_t altintegration::BtcChainParamsRegTest::getPowTargetTimespan ( ) const
inlineoverridevirtualnoexcept

Implements altintegration::BtcChainParams.

Definition at line 171 of file btc_chain_params.hpp.

171 {
172 return 14 * 24 * 60 * 60;
173 }

◆ networkName()

const char * altintegration::BtcChainParamsRegTest::networkName ( ) const
inlineoverridevirtualnoexcept

Implements altintegration::BtcChainParams.

Definition at line 162 of file btc_chain_params.hpp.

162{ return "regtest"; }

◆ numBlocksForBootstrap()

uint32_t altintegration::BtcChainParamsRegTest::numBlocksForBootstrap ( ) const
inlineoverridevirtualnoexcept

Implements altintegration::BtcChainParams.

Definition at line 164 of file btc_chain_params.hpp.

164{ return 1; };

The documentation for this struct was generated from the following file: