![]() |
Bitcoin Core
28.1.0
P2P Digital Currency
|
Public Member Functions | |
| void | FindProofOfWork (CBlockHeader &starting_header) |
| Search for a nonce to meet (regtest) proof of work. More... | |
| void | GenerateHeaders (std::vector< CBlockHeader > &headers, size_t count, const uint256 &starting_hash, const int nVersion, int prev_time, const uint256 &merkle_root, const 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... | |
Public Member Functions inherited from RegTestingSetup | |
| RegTestingSetup () | |
Public Member Functions inherited from TestingSetup | |
| TestingSetup (const ChainType chainType=ChainType::MAIN, TestOpts={}) | |
Public Member Functions inherited from ChainTestingSetup | |
| ChainTestingSetup (const ChainType chainType=ChainType::MAIN, TestOpts={}) | |
| ~ChainTestingSetup () | |
| void | LoadVerifyActivateChainstate () |
Public Member Functions inherited from BasicTestingSetup | |
| BasicTestingSetup (const ChainType chainType=ChainType::MAIN, TestOpts={}) | |
| ~BasicTestingSetup () | |
Additional Inherited Members | |
Public Attributes inherited from ChainTestingSetup | |
| node::CacheSizes | m_cache_sizes {} |
| bool | m_coins_db_in_memory {true} |
| bool | m_block_tree_db_in_memory {true} |
| std::function< void()> | m_make_chainman {} |
Public Attributes inherited from BasicTestingSetup | |
| util::SignalInterrupt | m_interrupt |
| node::NodeContext | m_node |
| fs::path | m_path_root |
| fs::path | m_path_lock |
| bool | m_has_custom_datadir {false} |
| ArgsManager | m_args |
Definition at line 16 of file headers_sync_chainwork_tests.cpp.
| void HeadersGeneratorSetup::FindProofOfWork | ( | CBlockHeader & | starting_header | ) |
Search for a nonce to meet (regtest) proof of work.
Definition at line 29 of file headers_sync_chainwork_tests.cpp.
| void HeadersGeneratorSetup::GenerateHeaders | ( | std::vector< CBlockHeader > & | headers, |
| size_t | count, | ||
| const uint256 & | starting_hash, | ||
| const int | nVersion, | ||
| int | prev_time, | ||
| const uint256 & | merkle_root, | ||
| const 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.
Definition at line 36 of file headers_sync_chainwork_tests.cpp.
1.8.14