pub fn reset_worker_shares(&mut self, height: u64, difficulty: u64) {
        self.worker_shares.id = self.uuid();
        self.worker_shares.height = height;
        self.worker_shares.difficulty = difficulty;
        self.worker_shares.shares = HashMap::new();
    }
/// Reset worker_shares for a new block
Reset worker_shares for a new block
Reset worker_shares for a new block
pub fn reset_worker_shares(&mut self, height: u64, difficulty: u64) {
        self.worker_shares.id = self.uuid();
        self.worker_shares.height = height;
        self.worker_shares.difficulty = difficulty;
        self.worker_shares.shares = HashMap::new();
    }
pub fn reset_worker_shares ( & mut self , height : u64 , difficulty : u64 ) { self . worker_shares . id = self . uuid ( ) ; self . worker_shares . height = height ; self . worker_shares . difficulty = difficulty ; self . worker_shares . shares = HashMap :: new ( ) ; }
Reset worker_shares for a new block
Reset worker_shares for a new block
&mut self
height
u64
difficulty
u64