@@ -723,6 +723,8 @@ mockPeerSelectionPolicy GovernorMockEnvironment {
723723 policyPeerShareBatchWaitTime = 3 , -- seconds
724724 policyPeerShareOverallTimeout = 10 , -- seconds
725725 policyPeerShareActivationDelay = 300 , -- seconds
726+ policyMaxConnectionRetries = 5 ,
727+ policyClearFailCountDelay = 120 , -- seconds
726728 policyErrorDelay = 10 -- seconds
727729 }
728730
@@ -751,64 +753,64 @@ tracerTracePeerSelection = contramap f tracerTestTraceEvent
751753 -- make the tracer strict
752754 f :: TracePeerSelection extraState extraFlags extraPeers PeerAddr
753755 -> TestTraceEvent extraState extraFlags extraPeers extraCounters
754- f a@ (TraceLocalRootPeersChanged ! _ ! _) = GovernorEvent a
755- f a@ (TraceTargetsChanged ! _ ! _) = GovernorEvent a
756- f a@ (TracePublicRootsRequest ! _ ! _) = GovernorEvent a
757- f a@ (TracePublicRootsResults ! _ ! _ ! _) = GovernorEvent a
758- f a@ (TracePublicRootsFailure ! _ ! _ ! _) = GovernorEvent a
759- f a@ (TraceForgetColdPeers ! _ ! _ ! _) = GovernorEvent a
760- f a@ (TraceBigLedgerPeersRequest ! _ ! _) = GovernorEvent a
761- f a@ (TraceBigLedgerPeersResults ! _ ! _ ! _) = GovernorEvent a
762- f a@ (TraceBigLedgerPeersFailure ! _ ! _ ! _) = GovernorEvent a
763- f a@ (TraceForgetBigLedgerPeers ! _ ! _ ! _) = GovernorEvent a
764- f a@ (TracePickInboundPeers ! _ ! _ ! _ ! _) = GovernorEvent a
765- f a@ (TracePeerShareRequests ! _ ! _ ! _ ! _ ! _) = GovernorEvent a
766- f a@ (TracePeerShareResults ! _) = GovernorEvent a
767- f a@ (TracePeerShareResultsFiltered ! _) = GovernorEvent a
768- f a@ (TracePromoteColdPeers ! _ ! _ ! _) = GovernorEvent a
769- f a@ (TracePromoteColdLocalPeers ! _ ! _) = GovernorEvent a
770- f a@ (TracePromoteColdFailed ! _ ! _ ! _ ! _ ! _) = GovernorEvent a
771- f a@ (TracePromoteColdDone ! _ ! _ ! _) = GovernorEvent a
772- f a@ (TracePromoteColdBigLedgerPeers ! _ ! _ ! _) = GovernorEvent a
773- f a@ (TracePromoteColdBigLedgerPeerFailed ! _ ! _ ! _ ! _ ! _) = GovernorEvent a
774- f a@ (TracePromoteColdBigLedgerPeerDone ! _ ! _ ! _) = GovernorEvent a
775- f a@ (TracePromoteWarmPeers ! _ ! _ ! _) = GovernorEvent a
776- f a@ (TracePromoteWarmLocalPeers ! _ ! _) = GovernorEvent a
777- f a@ (TracePromoteWarmFailed ! _ ! _ ! _ ! _) = GovernorEvent a
778- f a@ (TracePromoteWarmDone ! _ ! _ ! _) = GovernorEvent a
779- f a@ (TracePromoteWarmAborted ! _ ! _ ! _) = GovernorEvent a
780- f a@ (TracePromoteWarmBigLedgerPeers ! _ ! _ ! _) = GovernorEvent a
781- f a@ (TracePromoteWarmBigLedgerPeerFailed ! _ ! _ ! _ ! _) = GovernorEvent a
782- f a@ (TracePromoteWarmBigLedgerPeerDone ! _ ! _ ! _) = GovernorEvent a
783- f a@ (TracePromoteWarmBigLedgerPeerAborted ! _ ! _ ! _) = GovernorEvent a
784- f a@ (TraceDemoteWarmPeers ! _ ! _ ! _) = GovernorEvent a
785- f a@ (TraceDemoteWarmFailed ! _ ! _ ! _ ! _) = GovernorEvent a
786- f a@ (TraceDemoteWarmDone ! _ ! _ ! _) = GovernorEvent a
787- f a@ (TraceDemoteWarmBigLedgerPeers ! _ ! _ ! _) = GovernorEvent a
788- f a@ (TraceDemoteWarmBigLedgerPeerFailed ! _ ! _ ! _ ! _) = GovernorEvent a
789- f a@ (TraceDemoteWarmBigLedgerPeerDone ! _ ! _ ! _) = GovernorEvent a
790- f a@ (TraceDemoteHotPeers ! _ ! _ ! _) = GovernorEvent a
791- f a@ (TraceDemoteLocalHotPeers ! _ ! _) = GovernorEvent a
792- f a@ (TraceDemoteHotFailed ! _ ! _ ! _ ! _) = GovernorEvent a
793- f a@ (TraceDemoteHotDone ! _ ! _ ! _) = GovernorEvent a
794- f a@ (TraceDemoteHotBigLedgerPeers ! _ ! _ ! _) = GovernorEvent a
795- f a@ (TraceDemoteHotBigLedgerPeerFailed ! _ ! _ ! _ ! _) = GovernorEvent a
796- f a@ (TraceDemoteHotBigLedgerPeerDone ! _ ! _ ! _) = GovernorEvent a
797- f a@ (TraceDemoteAsynchronous ! _) = GovernorEvent a
798- f a@ (TraceDemoteLocalAsynchronous ! _) = GovernorEvent a
799- f a@ (TraceDemoteBigLedgerPeersAsynchronous ! _) = GovernorEvent a
800- f a@ TraceGovernorWakeup = GovernorEvent a
801- f a@ (TraceChurnWait ! _) = GovernorEvent a
802- f a@ (TraceChurnMode ! _) = GovernorEvent a
803- f a@ (TraceLedgerStateJudgementChanged ! _) = GovernorEvent a
804- f a@ TraceOnlyBootstrapPeers = GovernorEvent a
805- f a@ TraceBootstrapPeersFlagChangedWhilstInSensitiveState = GovernorEvent a
806- f a@ (TraceUseBootstrapPeersChanged ! _) = GovernorEvent a
807- f a@ (TraceOutboundGovernorCriticalFailure ! _) = GovernorEvent a
808- f a@ (TraceDebugState ! _ ! _) = GovernorEvent a
809- f a@ (TraceChurnAction ! _ ! _ ! _) = GovernorEvent a
810- f a@ (TraceChurnTimeout ! _ ! _ ! _) = GovernorEvent a
811- f a@ (TraceVerifyPeerSnapshot ! _) = GovernorEvent a
756+ f a@ (TraceLocalRootPeersChanged ! _ ! _) = GovernorEvent a
757+ f a@ (TraceTargetsChanged ! _ ! _) = GovernorEvent a
758+ f a@ (TracePublicRootsRequest ! _ ! _) = GovernorEvent a
759+ f a@ (TracePublicRootsResults ! _ ! _ ! _) = GovernorEvent a
760+ f a@ (TracePublicRootsFailure ! _ ! _ ! _) = GovernorEvent a
761+ f a@ (TraceForgetColdPeers ! _ ! _ ! _) = GovernorEvent a
762+ f a@ (TraceBigLedgerPeersRequest ! _ ! _) = GovernorEvent a
763+ f a@ (TraceBigLedgerPeersResults ! _ ! _ ! _) = GovernorEvent a
764+ f a@ (TraceBigLedgerPeersFailure ! _ ! _ ! _) = GovernorEvent a
765+ f a@ (TraceForgetBigLedgerPeers ! _ ! _ ! _) = GovernorEvent a
766+ f a@ (TracePickInboundPeers ! _ ! _ ! _ ! _) = GovernorEvent a
767+ f a@ (TracePeerShareRequests ! _ ! _ ! _ ! _ ! _) = GovernorEvent a
768+ f a@ (TracePeerShareResults ! _) = GovernorEvent a
769+ f a@ (TracePeerShareResultsFiltered ! _) = GovernorEvent a
770+ f a@ (TracePromoteColdPeers ! _ ! _ ! _) = GovernorEvent a
771+ f a@ (TracePromoteColdLocalPeers ! _ ! _) = GovernorEvent a
772+ f a@ (TracePromoteColdFailed ! _ ! _ ! _ ! _ ! _ ! _ ) = GovernorEvent a
773+ f a@ (TracePromoteColdDone ! _ ! _ ! _) = GovernorEvent a
774+ f a@ (TracePromoteColdBigLedgerPeers ! _ ! _ ! _) = GovernorEvent a
775+ f a@ (TracePromoteColdBigLedgerPeerFailed ! _ ! _ ! _ ! _ ! _ ! _ ) = GovernorEvent a
776+ f a@ (TracePromoteColdBigLedgerPeerDone ! _ ! _ ! _) = GovernorEvent a
777+ f a@ (TracePromoteWarmPeers ! _ ! _ ! _) = GovernorEvent a
778+ f a@ (TracePromoteWarmLocalPeers ! _ ! _) = GovernorEvent a
779+ f a@ (TracePromoteWarmFailed ! _ ! _ ! _ ! _) = GovernorEvent a
780+ f a@ (TracePromoteWarmDone ! _ ! _ ! _) = GovernorEvent a
781+ f a@ (TracePromoteWarmAborted ! _ ! _ ! _) = GovernorEvent a
782+ f a@ (TracePromoteWarmBigLedgerPeers ! _ ! _ ! _) = GovernorEvent a
783+ f a@ (TracePromoteWarmBigLedgerPeerFailed ! _ ! _ ! _ ! _) = GovernorEvent a
784+ f a@ (TracePromoteWarmBigLedgerPeerDone ! _ ! _ ! _) = GovernorEvent a
785+ f a@ (TracePromoteWarmBigLedgerPeerAborted ! _ ! _ ! _) = GovernorEvent a
786+ f a@ (TraceDemoteWarmPeers ! _ ! _ ! _) = GovernorEvent a
787+ f a@ (TraceDemoteWarmFailed ! _ ! _ ! _ ! _) = GovernorEvent a
788+ f a@ (TraceDemoteWarmDone ! _ ! _ ! _) = GovernorEvent a
789+ f a@ (TraceDemoteWarmBigLedgerPeers ! _ ! _ ! _) = GovernorEvent a
790+ f a@ (TraceDemoteWarmBigLedgerPeerFailed ! _ ! _ ! _ ! _) = GovernorEvent a
791+ f a@ (TraceDemoteWarmBigLedgerPeerDone ! _ ! _ ! _) = GovernorEvent a
792+ f a@ (TraceDemoteHotPeers ! _ ! _ ! _) = GovernorEvent a
793+ f a@ (TraceDemoteLocalHotPeers ! _ ! _) = GovernorEvent a
794+ f a@ (TraceDemoteHotFailed ! _ ! _ ! _ ! _) = GovernorEvent a
795+ f a@ (TraceDemoteHotDone ! _ ! _ ! _) = GovernorEvent a
796+ f a@ (TraceDemoteHotBigLedgerPeers ! _ ! _ ! _) = GovernorEvent a
797+ f a@ (TraceDemoteHotBigLedgerPeerFailed ! _ ! _ ! _ ! _) = GovernorEvent a
798+ f a@ (TraceDemoteHotBigLedgerPeerDone ! _ ! _ ! _) = GovernorEvent a
799+ f a@ (TraceDemoteAsynchronous ! _) = GovernorEvent a
800+ f a@ (TraceDemoteLocalAsynchronous ! _) = GovernorEvent a
801+ f a@ (TraceDemoteBigLedgerPeersAsynchronous ! _) = GovernorEvent a
802+ f a@ TraceGovernorWakeup = GovernorEvent a
803+ f a@ (TraceChurnWait ! _) = GovernorEvent a
804+ f a@ (TraceChurnMode ! _) = GovernorEvent a
805+ f a@ (TraceLedgerStateJudgementChanged ! _) = GovernorEvent a
806+ f a@ TraceOnlyBootstrapPeers = GovernorEvent a
807+ f a@ TraceBootstrapPeersFlagChangedWhilstInSensitiveState = GovernorEvent a
808+ f a@ (TraceUseBootstrapPeersChanged ! _) = GovernorEvent a
809+ f a@ (TraceOutboundGovernorCriticalFailure ! _) = GovernorEvent a
810+ f a@ (TraceDebugState ! _ ! _) = GovernorEvent a
811+ f a@ (TraceChurnAction ! _ ! _ ! _) = GovernorEvent a
812+ f a@ (TraceChurnTimeout ! _ ! _ ! _) = GovernorEvent a
813+ f a@ (TraceVerifyPeerSnapshot ! _) = GovernorEvent a
812814
813815tracerDebugPeerSelection :: Tracer (IOSim s ) (DebugPeerSelection Cardano. ExtraState PeerTrustable (Cardano. ExtraPeers PeerAddr ) PeerAddr )
814816tracerDebugPeerSelection = GovernorDebug `contramap` tracerTestTraceEvent
0 commit comments