![]() |
Bitcoin Core
22.99.0
P2P Digital Currency
|
Public Member Functions | |
CBlock | CreateBlock (const CBlockIndex *prev, const std::vector< CMutableTransaction > &txns, const CScript &scriptPubKey) |
bool | BuildChain (const CBlockIndex *pindex, const CScript &coinbase_script_pub_key, size_t length, std::vector< std::shared_ptr< CBlock >> &chain) |
![]() | |
TestChain100Setup (const std::vector< const char * > &extra_args={}) | |
CBlock | CreateAndProcessBlock (const std::vector< CMutableTransaction > &txns, const CScript &scriptPubKey, CChainState *chainstate=nullptr) |
Create a new block with just given transactions, coinbase paying to scriptPubKey, and try to add it to the current chain. More... | |
CBlock | CreateBlock (const std::vector< CMutableTransaction > &txns, const CScript &scriptPubKey, CChainState &chainstate) |
Create a new block with just given transactions, coinbase paying to scriptPubKey. More... | |
void | mineBlocks (int num_blocks) |
Mine a series of new blocks on the active chain. More... | |
CMutableTransaction | CreateValidMempoolTransaction (CTransactionRef input_transaction, int input_vout, int input_height, CKey input_signing_key, CScript output_destination, CAmount output_amount=CAmount(1 *COIN), bool submit=true) |
Create a transaction and submit to the mempool. More... | |
![]() | |
TestingSetup (const std::string &chainName=CBaseChainParams::MAIN, const std::vector< const char * > &extra_args={}) | |
![]() | |
ChainTestingSetup (const std::string &chainName=CBaseChainParams::MAIN, const std::vector< const char * > &extra_args={}) | |
~ChainTestingSetup () | |
![]() | |
BasicTestingSetup (const std::string &chainName=CBaseChainParams::MAIN, const std::vector< const char * > &extra_args={}) | |
~BasicTestingSetup () | |
Additional Inherited Members | |
![]() | |
std::vector< CTransactionRef > | m_coinbase_txns |
CKey | coinbaseKey |
![]() | |
node::CacheSizes | m_cache_sizes {} |
![]() | |
ECCVerifyHandle | globalVerifyHandle |
node::NodeContext | m_node |
const fs::path | m_path_root |
ArgsManager | m_args |
Definition at line 25 of file blockfilter_index_tests.cpp.
bool BuildChainTestingSetup::BuildChain | ( | const CBlockIndex * | pindex, |
const CScript & | coinbase_script_pub_key, | ||
size_t | length, | ||
std::vector< std::shared_ptr< CBlock >> & | chain | ||
) |
Definition at line 88 of file blockfilter_index_tests.cpp.
CBlock BuildChainTestingSetup::CreateBlock | ( | const CBlockIndex * | prev, |
const std::vector< CMutableTransaction > & | txns, | ||
const CScript & | scriptPubKey | ||
) |
Definition at line 64 of file blockfilter_index_tests.cpp.