Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translator should trigger downstream mining job clean #799

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 3 additions & 2 deletions roles/translator/src/lib/proxy/bridge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -433,11 +433,12 @@ impl Bridge {

let j_id = sv2_new_extended_mining_job.job_id;
// Create the mining.notify to be sent to the Downstream.
// clean_jobs must be false because it's not a NewPrevHash template
// `clean_jobs` must be `true` otherwise downstream clients will
// never clean up invalid jobs and submit stale shares.
let notify = crate::proxy::next_mining_notify::create_notify(
last_p_hash,
sv2_new_extended_mining_job.clone(),
false,
true,
);
// Get the sender to send the mining.notify to the Downstream
tx_sv1_notify.send(notify.clone())?;
Expand Down