Skip to content

Commit

Permalink
fix: update message on finding a valid share in tari_mining_node (#3408)
Browse files Browse the repository at this point in the history
Description
---
When pool mining, the miner finds shares (valid solutions to a block that meets the minimum difficulty of the pool and may or may not meet the minimum difficulty to be included on the chain). The miner is also only rewarded for these shares by the pool based on the rewards system the pool uses.

Motivation and Context
---
Prevents confusion between finding a block when solo mining and finding a share when pool mining. 

How Has This Been Tested?
---
N/A
  • Loading branch information
StriderDM authored Oct 5, 2021
1 parent ca1e9fd commit 7c13fde
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,13 @@ impl StratumMiner {
if difficulty >= target_difficulty {
let block_header: BlockHeader = BlockHeader::try_from(hasher.into_header()).unwrap();
info!(
"Miner found block header with hash {}, nonce {} and difficulty {:?}",
"Miner found share with hash {}, nonce {} and difficulty {:?}",
block_header.hash().to_hex(),
solver.current_nonce,
difficulty
);
debug!(
"Miner found block header with hash {}, difficulty {:?} and data {:?}",
"Miner found share with hash {}, difficulty {:?} and data {:?}",
block_header.hash().to_hex(),
difficulty,
block_header
Expand Down

0 comments on commit 7c13fde

Please sign in to comment.