diff --git a/src/audit/src/lib/find.rs b/src/audit/src/lib/find.rs index 463bf979b4..48fd818bcb 100644 --- a/src/audit/src/lib/find.rs +++ b/src/audit/src/lib/find.rs @@ -122,10 +122,7 @@ pub fn find_vote(jormungandr_database: &Path, voting_key: String) -> Result, block0: Block, ) -> Result, Report> { - let without_tally_fragments: Vec = all_fragments + let without_tally_fragments = all_fragments .into_iter() - .filter(|f| !matches!(f, Fragment::VoteTally(_))) - .collect(); + .filter(|f| !matches!(f, Fragment::VoteTally(_))); let (ledger, failed) = recover_ledger_from_fragments(&block0, without_tally_fragments.into_iter())?; diff --git a/src/audit/src/lib/recover.rs b/src/audit/src/lib/recover.rs index 6ef55c3e66..3d02229c61 100644 --- a/src/audit/src/lib/recover.rs +++ b/src/audit/src/lib/recover.rs @@ -1,3 +1,4 @@ +#[allow(clippy::result_large_err)] use chain_addr::{Discrimination, Kind}; use chain_core::property::Fragment as _; use chain_crypto::{Ed25519Extended, SecretKey}; diff --git a/src/chain-libs/chain-impl-mockchain/src/vote/manager.rs b/src/chain-libs/chain-impl-mockchain/src/vote/manager.rs index 3603fe796e..429db32227 100644 --- a/src/chain-libs/chain-impl-mockchain/src/vote/manager.rs +++ b/src/chain-libs/chain-impl-mockchain/src/vote/manager.rs @@ -850,7 +850,9 @@ impl VotePlanManager { where F: FnMut(&VoteAction), { - if !cfg!(feature = "audit") && !self.can_committee(block_date) { + if cfg!(feature = "audit") { + // audit feature enabled - fragment replay has no concept of time. Skip check. + } else if !self.can_committee(block_date) { return Err(VoteError::NotCommitteeTime { start: self.plan().committee_start(), end: self.plan().committee_end(),