| 918 | } |
| 919 | |
| 920 | bool submitSolution(uint32_t version, uint32_t timestamp, uint32_t nonce, CTransactionRef coinbase) override |
| 921 | { |
| 922 | AddMerkleRootAndCoinbase(m_block_template->block, std::move(coinbase), version, timestamp, nonce); |
| 923 | std::string reason; |
| 924 | std::string debug; |
| 925 | return SubmitBlock(chainman(), std::make_shared<const CBlock>(m_block_template->block), /*new_block=*/nullptr, reason, debug); |
| 926 | } |
| 927 | |
| 928 | std::unique_ptr<BlockTemplate> waitNext(BlockWaitOptions options) override |
| 929 | { |