Skip to content

Commit 19023f6

Browse files
Pull in ouroboros-network defaults
1 parent acae485 commit 19023f6

File tree

1 file changed

+5
-11
lines changed
  • cardano-node/src/Cardano/Node/Configuration

1 file changed

+5
-11
lines changed

cardano-node/src/Cardano/Node/Configuration/POM.hs

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ data PartialNodeConfiguration
290290
-- Consensus mode for diffusion layer
291291
, pncConsensusMode :: !(Last ConsensusMode)
292292

293-
-- Enable experimental P2P mode
293+
-- Network P2P mode
294294
, pncEnableP2P :: !(Last NetworkP2PMode)
295295

296296
-- Peer Sharing
@@ -671,17 +671,11 @@ defaultPartialNodeConfiguration =
671671
DefaultQueryBatchSize
672672
V2InMemory
673673
noDeprecatedOptions
674-
, pncProtocolIdleTimeout = Last (Just 5)
675-
, pncTimeWaitTimeout = Last (Just 60)
676-
, pncEgressPollInterval = Last (Just 0)
674+
, pncProtocolIdleTimeout = Last (Just Ouroboros.defaultProtocolIdleTimeout)
675+
, pncTimeWaitTimeout = Last (Just Ouroboros.defaultTimeWaitTimeout)
676+
, pncEgressPollInterval = Last (Just Ouroboros.defaultEgressPollInterval)
677677
, pncAcceptedConnectionsLimit =
678-
Last
679-
$ Just
680-
$ AcceptedConnectionsLimit
681-
{ acceptedConnectionsHardLimit = 512
682-
, acceptedConnectionsSoftLimit = 384
683-
, acceptedConnectionsDelay = 5
684-
}
678+
Last (Just Ouroboros.defaultAcceptedConnectionsLimit)
685679
, pncChainSyncIdleTimeout = mempty
686680
, pncDeadlineTargetOfRootPeers = Last (Just deadlineRoots)
687681
, pncDeadlineTargetOfKnownPeers = Last (Just deadlineKnown)

0 commit comments

Comments
 (0)