| 20 | using node::NodeContext; |
| 21 | |
| 22 | CTxIn generatetoaddress(const NodeContext& node, const std::string& address) |
| 23 | { |
| 24 | const auto dest = DecodeDestination(address); |
| 25 | assert(IsValidDestination(dest)); |
| 26 | const auto coinbase_script = GetScriptForDestination(dest); |
| 27 | |
| 28 | return MineBlock(node, coinbase_script); |
| 29 | } |
| 30 | |
| 31 | std::vector<std::shared_ptr<CBlock>> CreateBlockChain(size_t total_height, const CChainParams& params) |
| 32 | { |
nothing calls this directly
no test coverage detected