![]() |
Bitcoin Core 22.99.0
P2P Digital Currency
|
#include <test/util/mining.h>#include <chainparams.h>#include <consensus/merkle.h>#include <key_io.h>#include <miner.h>#include <node/context.h>#include <pow.h>#include <script/standard.h>#include <test/util/script.h>#include <util/check.h>#include <validation.h>#include <versionbits.h>Go to the source code of this file.
Functions | |
| CTxIn | generatetoaddress (const NodeContext &node, const std::string &address) |
| RPC-like helper function, returns the generated coin. More... | |
| std::vector< std::shared_ptr< CBlock > > | CreateBlockChain (size_t total_height, const CChainParams ¶ms) |
| Create a blockchain, starting from genesis. More... | |
| CTxIn | MineBlock (const NodeContext &node, const CScript &coinbase_scriptPubKey) |
| Returns the generated coin. More... | |
| std::shared_ptr< CBlock > | PrepareBlock (const NodeContext &node, const CScript &coinbase_scriptPubKey) |
| Prepare a block to be mined. More... | |
| std::vector< std::shared_ptr< CBlock > > CreateBlockChain | ( | size_t | total_height, |
| const CChainParams & | params | ||
| ) |
Create a blockchain, starting from genesis.
Definition at line 28 of file mining.cpp.
| CTxIn generatetoaddress | ( | const NodeContext & | node, |
| const std::string & | address | ||
| ) |
RPC-like helper function, returns the generated coin.
Definition at line 19 of file mining.cpp.
| CTxIn MineBlock | ( | const NodeContext & | node, |
| const CScript & | coinbase_scriptPubKey | ||
| ) |
Returns the generated coin.
Definition at line 59 of file mining.cpp.
| std::shared_ptr< CBlock > PrepareBlock | ( | const NodeContext & | node, |
| const CScript & | coinbase_scriptPubKey | ||
| ) |
Prepare a block to be mined.
Definition at line 74 of file mining.cpp.