[monero-project/monero] Regtest (#3854)

vicsn commented on this pull request.

> +
+ template_req.reserve_size = 1;
+ template_req.wallet_address = req.wallet_address;
+ submit_req.push_back(boost::value_initialized());
+
+ for(size_t i = 0; i < req.amount_of_blocks; i++) + { + + if(!on_getblocktemplate(template_req, template_res, error_resp)) return false; + + submit_req.front() = template_res.blocktemplate_blob; + if(!on_submitblock(submit_req, submit_res, error_resp)) return false; + + res.height = template_res.height; + res.status = submit_res.status; + } Added proper initialization for height, and added more moments where status is updated

Добавить комментарий