|
| void | FindProofOfWork (CBlockHeader &starting_header) |
| | Search for a nonce to meet (regtest) proof of work. More...
|
| |
| std::vector< CBlockHeader > | GenerateHeaders (size_t count, uint256 prev_hash, int32_t nVersion, uint32_t prev_time, const uint256 &merkle_root, uint32_t nBits) |
| | Generate headers in a chain that build off a given starting hash, using the given nVersion, advancing time by 1 second from the starting prev_time, and with a fixed merkle root hash. More...
|
| |
◆ CreateState()
◆ FindProofOfWork()
| void HeadersGeneratorSetup::FindProofOfWork |
( |
CBlockHeader & |
starting_header | ) |
|
|
private |
◆ FirstChain()
| const std::vector< CBlockHeader > & HeadersGeneratorSetup::FirstChain |
( |
| ) |
|
|
inline |
◆ GenerateHeaders()
| std::vector< CBlockHeader > HeadersGeneratorSetup::GenerateHeaders |
( |
size_t |
count, |
|
|
uint256 |
prev_hash, |
|
|
int32_t |
nVersion, |
|
|
uint32_t |
prev_time, |
|
|
const uint256 & |
merkle_root, |
|
|
uint32_t |
nBits |
|
) |
| |
|
private |
Generate headers in a chain that build off a given starting hash, using the given nVersion, advancing time by 1 second from the starting prev_time, and with a fixed merkle root hash.
Definition at line 113 of file headers_sync_chainwork_tests.cpp.
◆ SecondChain()
| const std::vector< CBlockHeader > & HeadersGeneratorSetup::SecondChain |
( |
| ) |
|
|
inline |
◆ chain_start
| const CBlockIndex* HeadersGeneratorSetup::chain_start {WITH_LOCK(::cs_main, return m_node.chainman->m_blockman.LookupBlockIndex(genesis.GetHash()))} |
◆ genesis
| const CBlock& HeadersGeneratorSetup::genesis {Params().GenesisBlock()} |
The documentation for this struct was generated from the following file: