mirror of
https://github.com/wownero/wownero.git
synced 2026-11-27 03:03:53 +01:00
Merge pull request #5374
a2561653 wallet: new option to start background mining (moneromooo-monero)
This commit is contained in:
@@ -973,6 +973,7 @@ namespace cryptonote
|
||||
const miner& lMiner = m_core.get_miner();
|
||||
res.active = lMiner.is_mining();
|
||||
res.is_background_mining_enabled = lMiner.get_is_background_mining_enabled();
|
||||
store_difficulty(m_core.get_blockchain_storage().get_difficulty_for_next_block(), res.difficulty, res.wide_difficulty, res.difficulty_top64);
|
||||
|
||||
res.block_target = m_core.get_blockchain_storage().get_current_hard_fork_version() < 2 ? DIFFICULTY_TARGET_V1 : DIFFICULTY_TARGET_V2;
|
||||
if ( lMiner.is_mining() ) {
|
||||
|
||||
@@ -821,6 +821,9 @@ namespace cryptonote
|
||||
uint8_t bg_target;
|
||||
uint32_t block_target;
|
||||
uint64_t block_reward;
|
||||
uint64_t difficulty;
|
||||
std::string wide_difficulty;
|
||||
uint64_t difficulty_top64;
|
||||
|
||||
BEGIN_KV_SERIALIZE_MAP()
|
||||
KV_SERIALIZE(status)
|
||||
@@ -836,6 +839,9 @@ namespace cryptonote
|
||||
KV_SERIALIZE(bg_target)
|
||||
KV_SERIALIZE(block_target)
|
||||
KV_SERIALIZE(block_reward)
|
||||
KV_SERIALIZE(difficulty)
|
||||
KV_SERIALIZE(wide_difficulty)
|
||||
KV_SERIALIZE(difficulty_top64)
|
||||
END_KV_SERIALIZE_MAP()
|
||||
};
|
||||
typedef epee::misc_utils::struct_init<response_t> response;
|
||||
|
||||
Reference in New Issue
Block a user