@@ -24,7 +24,7 @@ import Data.Maybe (fromMaybe)
24
24
import Data.Text (Text )
25
25
import Data.Time.Format.ISO8601 (iso8601ParseM )
26
26
import Options.Applicative qualified as O
27
- import P2P.Node.Configuration (defaultP2pConfiguration , p2pConfigBootstrapReachability , p2pConfigIgnoreBootstrapNodes )
27
+ import P2P.Node.Configuration (defaultP2pConfiguration , p2pConfigBootstrapReachability , p2pConfigIgnoreBootstrapNodes , p2pConfigPrivate )
28
28
import System.IO qualified as IO
29
29
import System.LogLevel (LogLevel (.. ))
30
30
@@ -53,10 +53,19 @@ mkReplayConfiguration cfg = defaultChainwebNodeConfiguration
53
53
cwConfig = defaultChainwebConfiguration mainnet
54
54
& configReadOnlyReplay .~ not cfg. noReadOnly
55
55
& configOnlySyncPact .~ cfg. noReadOnly
56
- & configCuts .~ (defaultCutConfig & cutInitialBlockHeightLimit .~ cfg . initialBlockHeightLimit & cutFastForwardBlockHeightLimit .~ cfg . fastForwardBlockHeightLimit)
57
- & configP2p .~ (defaultP2pConfiguration & p2pConfigBootstrapReachability .~ 0 & p2pConfigIgnoreBootstrapNodes .~ True )
56
+ & configCuts .~ cutConfig
57
+ & configP2p .~ p2pConfig
58
58
& configFullHistoricPactState .~ False
59
59
60
+ cutConfig = defaultCutConfig
61
+ & cutInitialBlockHeightLimit .~ cfg. initialBlockHeightLimit
62
+ & cutFastForwardBlockHeightLimit .~ cfg. fastForwardBlockHeightLimit
63
+
64
+ p2pConfig = defaultP2pConfiguration
65
+ & p2pConfigBootstrapReachability .~ 0
66
+ & p2pConfigIgnoreBootstrapNodes .~ True
67
+ & p2pConfigPrivate .~ True
68
+
60
69
data Config = Config
61
70
{ chainwebVersion :: ChainwebVersion
62
71
, noReadOnly :: Bool
0 commit comments