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_core/cryptonote_core.cpp | |
| parent | 9ed496bbc56be915d9a33dc0087cb22b554ade61 (diff) | |
| download | monzero-core-bff90264b8b4e3869aad92e09591f2a579504d7e.tar.gz monzero-core-bff90264b8b4e3869aad92e09591f2a579504d7e.tar.xz monzero-core-bff90264b8b4e3869aad92e09591f2a579504d7e.zip | |
Add expected total reward to RPC "getblocktemplate".
Only works from V5 fork onward - returns 0 before that block.
Diffstat (limited to 'src/cryptonote_core/cryptonote_core.cpp')
| -rw-r--r-- | src/cryptonote_core/cryptonote_core.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cryptonote_core/cryptonote_core.cpp b/src/cryptonote_core/cryptonote_core.cpp index 4d4b9d4d2..9c122f511 100644 --- a/src/cryptonote_core/cryptonote_core.cpp +++ b/src/cryptonote_core/cryptonote_core.cpp @@ -827,9 +827,9 @@ namespace cryptonote m_mempool.set_relayed(txs); } //----------------------------------------------------------------------------------------------- - bool core::get_block_template(block& b, const account_public_address& adr, difficulty_type& diffic, uint64_t& height, const blobdata& ex_nonce) + bool core::get_block_template(block& b, const account_public_address& adr, difficulty_type& diffic, uint64_t& height, uint64_t& expected_reward, const blobdata& ex_nonce) { - return m_blockchain_storage.create_block_template(b, adr, diffic, height, ex_nonce); + return m_blockchain_storage.create_block_template(b, adr, diffic, height, expected_reward, ex_nonce); } //----------------------------------------------------------------------------------------------- bool core::find_blockchain_supplement(const std::list<crypto::hash>& qblock_ids, NOTIFY_RESPONSE_CHAIN_ENTRY::request& resp) const |
