Skip to content

Commit

Permalink
node: delete delete_candidate_blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
fed-franz committed Aug 27, 2024
1 parent b77cf03 commit 057d1bd
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions node/src/chain/consensus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,19 +211,6 @@ impl<DB: database::DB> dusk_consensus::commons::Database for CandidateDB<DB> {
}
}
}

fn delete_candidate_blocks(&mut self) {
match self.db.try_read() {
Ok(db) => {
if let Err(e) = db.update(|t| t.clear_candidates()) {
warn!("Unable to cleare candidates: {e}");
};
}
Err(e) => {
warn!("Cannot acquire lock to clear_candidate: {e}");
}
}
}
}

/// Implements Executor trait to mock Contract Storage calls.
Expand Down

0 comments on commit 057d1bd

Please sign in to comment.