From b5f90353ea841fc2e3af9f77d42205c337c93dd2 Mon Sep 17 00:00:00 2001 From: Yossi Gilad Date: Tue, 29 Aug 2023 11:00:29 -0400 Subject: [PATCH] add dynamic filter timeout parameter, matching go-algorand PR 5654 --- 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