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

testnet3 network params in Bitcoin chain. More...

Detailed Description

Definition at line 110 of file btc_chain_params.hpp.

#include <btc_chain_params.hpp>

+ Inheritance diagram for altintegration::BtcChainParamsTest:
+ Collaboration diagram for altintegration::BtcChainParamsTest:

Public Member Functions

bool EnableTimeAdjustment () const noexcept override
 
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::BtcChainParamsTest::EnableTimeAdjustment ( ) const
inlineoverridevirtualnoexcept

Implements altintegration::BtcChainParams.

Definition at line 113 of file btc_chain_params.hpp.

113{ return true; }

◆ getAllowMinDifficultyBlocks()

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

Implements altintegration::BtcChainParams.

Definition at line 130 of file btc_chain_params.hpp.

130{ return true; }

◆ getPowLimit()

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

Implements altintegration::BtcChainParams.

Definition at line 121 of file btc_chain_params.hpp.

121 {
122 return uint256::fromHex(
123 "ffffffffffffffffffffffffffffffffffffffffffffffffffffffff00000000");
124 }

◆ getPowNoRetargeting()

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

Implements altintegration::BtcChainParams.

Definition at line 131 of file btc_chain_params.hpp.

131{ return false; }

◆ getPowTargetSpacing()

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

Implements altintegration::BtcChainParams.

Definition at line 129 of file btc_chain_params.hpp.

129{ return 10 * 60; }

◆ getPowTargetTimespan()

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

Implements altintegration::BtcChainParams.

Definition at line 126 of file btc_chain_params.hpp.

126 {
127 return 14 * 24 * 60 * 60;
128 }

◆ networkName()

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

Implements altintegration::BtcChainParams.

Definition at line 115 of file btc_chain_params.hpp.

115{ return "test"; }

◆ numBlocksForBootstrap()

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

Implements altintegration::BtcChainParams.

Definition at line 117 of file btc_chain_params.hpp.

117 {
118 return getDifficultyAdjustmentInterval();
119 };

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