mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2025-07-08 19:01:43 +00:00
Add expected total reward to RPC "getblocktemplate".
Only works from V5 fork onward - returns 0 before that block.
This commit is contained in:
parent
9ed496bbc5
commit
bff90264b8
10 changed files with 19 additions and 12 deletions
|
@ -883,7 +883,7 @@ namespace cryptonote
|
|||
block b = AUTO_VAL_INIT(b);
|
||||
cryptonote::blobdata blob_reserve;
|
||||
blob_reserve.resize(req.reserve_size, 0);
|
||||
if(!m_core.get_block_template(b, acc, res.difficulty, res.height, blob_reserve))
|
||||
if(!m_core.get_block_template(b, acc, res.difficulty, res.height, res.expected_reward, blob_reserve))
|
||||
{
|
||||
error_resp.code = CORE_RPC_ERROR_CODE_INTERNAL_ERROR;
|
||||
error_resp.message = "Internal error: failed to create block template";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue