From 057d1bd60674108af08447d56f2158f7357eba3f Mon Sep 17 00:00:00 2001 From: Federico Franzoni <8609060+fed-franz@users.noreply.github.com> Date: Tue, 27 Aug 2024 12:16:53 +0200 Subject: [PATCH] node: delete delete_candidate_blocks --- node/src/chain/consensus.rs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/node/src/chain/consensus.rs b/node/src/chain/consensus.rs index d8150151bd..dfd58cbf32 100644 --- a/node/src/chain/consensus.rs +++ b/node/src/chain/consensus.rs @@ -211,19 +211,6 @@ impl dusk_consensus::commons::Database for CandidateDB { } } } - - 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.