Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions sv2/channels-sv2/src/client/extended.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,11 @@ impl<'a> ExtendedChannel<'a> {
self.nominal_hashrate
}

/// Sets the nominal hashrate for the channel, in h/s.
pub fn set_nominal_hashrate(&mut self, hashrate: f32) {
self.nominal_hashrate = hashrate;
}

/// Returns a reference to the currently active job, if any.
pub fn get_active_job(&self) -> Option<&ExtendedJob<'a>> {
self.active_job.as_ref()
Expand Down
Loading