Commit 37f67300 authored by Nick Mathewson's avatar Nick Mathewson 🦞
Browse files

Add missing extend_tolerance to add_consensus_text.

This should have gone in when we fixed #412
parent ffc86401
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -346,6 +346,7 @@ impl<R: Runtime> GetConsensusState<R> {
                MdConsensus::parse(text).map_err(|e| Error::from_netdoc(source.clone(), e))?;
            #[cfg(feature = "dirfilter")]
            let parsed = self.filter.filter_consensus(parsed)?;
            let parsed = self.config.tolerance.extend_tolerance(parsed);
            let now = self.rt.wallclock();
            let timely = parsed.check_valid_at(&now)?;
            let meta = ConsensusMeta::from_unvalidated(signedval, remainder, &timely);