![]() |
Bitcoin Core
24.1.0
P2P Digital Currency
|
#include <memory>#include <string>#include <vector>Go to the source code of this file.
Namespaces | |
| node | |
Functions | |
| std::vector< std::shared_ptr< CBlock > > | CreateBlockChain (size_t total_height, const CChainParams ¶ms) |
| Create a blockchain, starting from genesis. More... | |
| CTxIn | MineBlock (const node::NodeContext &, const CScript &coinbase_scriptPubKey) |
| Returns the generated coin. More... | |
| std::shared_ptr< CBlock > | PrepareBlock (const node::NodeContext &, const CScript &coinbase_scriptPubKey) |
| Prepare a block to be mined. More... | |
| CTxIn | generatetoaddress (const node::NodeContext &, 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 & | params | ||
| ) |
Create a blockchain, starting from genesis.
Definition at line 31 of file mining.cpp.
| CTxIn generatetoaddress | ( | const node::NodeContext & | , |
| const std::string & | address | ||
| ) |
RPC-like helper function, returns the generated coin.
Definition at line 22 of file mining.cpp.
| CTxIn MineBlock | ( | const node::NodeContext & | , |
| const CScript & | coinbase_scriptPubKey | ||
| ) |
Returns the generated coin.
Definition at line 62 of file mining.cpp.
| std::shared_ptr<CBlock> PrepareBlock | ( | const node::NodeContext & | , |
| const CScript & | coinbase_scriptPubKey | ||
| ) |
Prepare a block to be mined.
Definition at line 77 of file mining.cpp.
1.8.14