diff options
author | assylias <yann@assylias.com> | 2017-03-28 15:55:38 +0100 |
---|---|---|
committer | assylias <yann@assylias.com> | 2017-04-19 18:28:16 +0100 |
commit | bff90264b8b4e3869aad92e09591f2a579504d7e (patch) | |
tree | 5243440af48edc6f623baf3b16cdf4773797b931 /src/cryptonote_basic/miner.h | |
parent | Merge pull request #1956 (diff) | |
download | monero-bff90264b8b4e3869aad92e09591f2a579504d7e.tar.xz |
Add expected total reward to RPC "getblocktemplate".
Only works from V5 fork onward - returns 0 before that block.
Diffstat (limited to '')
-rw-r--r-- | src/cryptonote_basic/miner.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptonote_basic/miner.h b/src/cryptonote_basic/miner.h index 8ab4b2855..964ee6a36 100644 --- a/src/cryptonote_basic/miner.h +++ b/src/cryptonote_basic/miner.h @@ -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(){}; }; |