From c039b842b12b6d3c4da6a1bb7d9f2c691feb6c67 Mon Sep 17 00:00:00 2001 From: yossigi Date: Thu, 31 Aug 2023 12:19:15 -0400 Subject: [PATCH] add dynamic filter timeout parameter, matching go-algorand PR 5654 (#603) --- protocol/config/consensus.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/protocol/config/consensus.go b/protocol/config/consensus.go index cf12dfc7..90174faa 100644 --- a/protocol/config/consensus.go +++ b/protocol/config/consensus.go @@ -497,6 +497,12 @@ type ConsensusParams struct { // used by agreement for Circulation, and updates the calculation of StateProofOnlineTotalWeight used // by state proofs to use the same method (rather than excluding stake from the top N stakeholders as before). ExcludeExpiredCirculation bool + + // DynamicFilterTimeout indicates whether the filter timeout is set + // dynamically, at run time, according to the recent history of credential + // arrival times or is set to a static value. Even if this flag disables the + // dynamic filter, it will be calculated and logged (but not used). + DynamicFilterTimeout bool } // PaysetCommitType enumerates possible ways for the block header to commit to