![]() |
Bitcoin Core 29.99.0
P2P Digital Currency
|
Go to the source code of this file.
Namespaces | |
namespace | node |
Functions | |
std::vector< std::shared_ptr< CBlock > > | CreateBlockChain (size_t total_height, const CChainParams ¶ms) |
Create a blockchain, starting from genesis. More... | |
COutPoint | MineBlock (const node::NodeContext &, const node::BlockAssembler::Options &assembler_options) |
Returns the generated coin. More... | |
COutPoint | MineBlock (const node::NodeContext &, std::shared_ptr< CBlock > &block) |
Returns the generated coin (or Null if the block was invalid). More... | |
COutPoint | ProcessBlock (const node::NodeContext &, const std::shared_ptr< CBlock > &block) |
Returns the generated coin (or Null if the block was invalid). More... | |
std::shared_ptr< CBlock > | PrepareBlock (const node::NodeContext &) |
Prepare a block to be mined. More... | |
std::shared_ptr< CBlock > | PrepareBlock (const node::NodeContext &node, const node::BlockAssembler::Options &assembler_options) |
COutPoint | 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 35 of file mining.cpp.
COutPoint generatetoaddress | ( | const node::NodeContext & | node, |
const std::string & | address | ||
) |
RPC-like helper function, returns the generated coin.
Definition at line 25 of file mining.cpp.
COutPoint MineBlock | ( | const node::NodeContext & | node, |
const node::BlockAssembler::Options & | assembler_options | ||
) |
Returns the generated coin.
Definition at line 69 of file mining.cpp.
COutPoint MineBlock | ( | const node::NodeContext & | node, |
std::shared_ptr< CBlock > & | block | ||
) |
Returns the generated coin (or Null if the block was invalid).
It is recommended to call RegenerateCommitments before mining the block to avoid merkle tree mismatches.
Definition at line 93 of file mining.cpp.
std::shared_ptr< CBlock > PrepareBlock | ( | const node::NodeContext & | ) |
Prepare a block to be mined.
std::shared_ptr< CBlock > PrepareBlock | ( | const node::NodeContext & | node, |
const node::BlockAssembler::Options & | assembler_options | ||
) |
COutPoint ProcessBlock | ( | const node::NodeContext & | node, |
const std::shared_ptr< CBlock > & | block | ||
) |
Returns the generated coin (or Null if the block was invalid).
Definition at line 103 of file mining.cpp.