|
if let Some(new_hashrate) = new_hashrate_opt { |
|
if let Ok(()) = channel_state.update_channel(new_hashrate, None) { |
|
let updated_target = channel_state.get_target(); |
|
updates.push((channel_id, updated_target.clone())); |
|
|
|
debug!( |
|
"Updated target for extended channel_id={channel_id} to {:?}", |
|
updated_target |
|
); |
|
} else { |
|
warn!("Failed to update extended channel {channel_id}"); |
|
} |
|
} |
|
if let Some(new_hashrate) = new_hashrate_opt { |
|
if let Ok(()) = channel_state.update_channel(new_hashrate, None) { |
|
let updated_target = channel_state.get_target(); |
|
updates.push((channel_id, updated_target.clone())); |
|
|
|
debug!( |
|
"Updated target for standard channel_id={channel_id} to {:?}", |
|
updated_target |
|
); |
|
} else { |
|
warn!("Failed to update standard channel {channel_id}"); |
|
} |
|
} |
on error case, the user is led to believe that there was a failure on a received UpdateChannel message, while the context is actually vardiff
stratum/roles/pool/src/lib/mining_pool/mod.rs
Lines 1176 to 1188 in 52a9cf3
stratum/roles/pool/src/lib/mining_pool/mod.rs
Lines 1217 to 1229 in 52a9cf3
on error case, the user is led to believe that there was a failure on a received
UpdateChannelmessage, while the context is actually vardiff