mirror of
https://github.com/monero-project/monero.git
synced 2025-05-05 02:05:09 -04: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
|
@ -51,7 +51,7 @@ namespace cryptonote
|
|||
struct i_miner_handler
|
||||
{
|
||||
virtual bool handle_block_found(block& b) = 0;
|
||||
virtual bool get_block_template(block& b, const account_public_address& adr, difficulty_type& diffic, uint64_t& height, const blobdata& ex_nonce) = 0;
|
||||
virtual bool get_block_template(block& b, const account_public_address& adr, difficulty_type& diffic, uint64_t& height, uint64_t& expected_reward, const blobdata& ex_nonce) = 0;
|
||||
protected:
|
||||
~i_miner_handler(){};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue