Skip to content

Commit

Permalink
Update roles/test-utils/mining-device/src/main.rs
Browse files Browse the repository at this point in the history
Co-authored-by: plebhash <[email protected]>
  • Loading branch information
Fi3 and plebhash authored Jul 19, 2024
1 parent 7c3c45d commit c561730
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion roles/test-utils/mining-device/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,11 @@ impl Device {
let mut notify_changes_to_mining_thread = self_mutex
.safe_lock(|s| s.notify_changes_to_mining_thread.clone())
.unwrap();
if notify_changes_to_mining_thread.should_send {
if notify_changes_to_mining_thread.should_send
&& (message_type == const_sv2::MESSAGE_TYPE_NEW_MINING_JOB
|| message_type == const_sv2::MESSAGE_TYPE_SET_NEW_PREV_HASH
|| message_type == const_sv2::MESSAGE_TYPE_SET_TARGET)
{
notify_changes_to_mining_thread
.sender
.send(())
Expand Down

0 comments on commit c561730

Please sign in to comment.