Skip to content

Commit bbd767d

Browse files
committed
Make more options internal
Change-Id: Id0000000b24f65646acb11fe480124d5bc24e158
1 parent 5750d4a commit bbd767d

File tree

5 files changed

+24
-4
lines changed

5 files changed

+24
-4
lines changed

src/Chainweb/Chainweb/Configuration.hs

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -370,14 +370,17 @@ pCutConfig = id
370370
<$< cutFetchTimeout .:: option auto
371371
% long "cut-fetch-timeout"
372372
<> help "The timeout for processing new cuts in microseconds"
373+
<> internal
373374
<*< cutInitialBlockHeightLimit .:: fmap (Just . BlockHeight) . option auto
374375
% long "initial-block-height-limit"
375376
<> help "Reset initial cut to this block height."
376377
<> metavar "INT"
378+
<> internal
377379
<*< cutFastForwardBlockHeightLimit .:: fmap (Just . BlockHeight) . option auto
378380
% long "fast-forward-block-height-limit"
379381
<> help "When --only-sync-pact is given fast forward to this height. Ignored otherwise."
380382
<> metavar "INT"
383+
<> internal
381384

382385
-- -------------------------------------------------------------------------- --
383386
-- Service API Configuration
@@ -437,6 +440,7 @@ pServiceApiConfig = id
437440
<*< serviceApiPayloadBatchLimit .:: fmap PayloadBatchLimit . option auto
438441
% prefixLong service "payload-batch-limit"
439442
<> suffixHelp service "upper limit for the size of payload batches on the service API"
443+
<> internal
440444
<*< serviceApiConfigValidateSpec .:: enableDisableFlag
441445
% prefixLong service "validate-spec"
442446
<> internal -- hidden option, for expert use
@@ -627,19 +631,23 @@ pChainwebConfiguration = id
627631
<> help "Max allowed reorg depth.\
628632
\ Consult https://github.com/kadena-io/chainweb-node/blob/master/docs/RecoveringFromDeepForks.md for\
629633
\ more information. "
634+
<> internal
630635
<*< parserOptionGroup "Cut Processing" (configCuts %:: pCutConfig)
631636
<*< parserOptionGroup "Service API" (configServiceApi %:: pServiceApiConfig)
632637
<*< parserOptionGroup "Mining Coordination" (configMining %:: pMiningConfig)
633638
<*< configOnlySync .:: boolOption_
634639
% long "only-sync"
635640
<> help "Terminate after synchronizing the pact databases to the latest cut"
641+
<> internal
636642
<*< configReadOnlyReplay .:: boolOption_
637643
% long "read-only-replay"
638644
<> help "Replay the block history non-destructively"
645+
<> internal
639646
<*< configSyncChains .:: fmap Just % jsonOption
640647
% long "sync-chains"
641648
<> help "The only Pact databases to synchronize. If empty or unset, all chains will be synchronized."
642649
<> metavar "JSON list of chain ids"
650+
<> internal
643651
<*< parserOptionGroup "Backup" (configBackup %:: pBackupConfig)
644652

645653
-- FIXME support payload providers
@@ -653,9 +661,9 @@ parseVersion = constructVersion
653661
<> short 'v'
654662
<> help "the chainweb version that this node is using"
655663
)
656-
<*> optional (textOption @Fork (long "fork-upper-bound" <> help "(development mode only) the latest fork the node will enable"))
657-
<*> optional (BlockDelay <$> textOption (long "block-delay" <> help "(development mode only) the block delay in seconds per block"))
658-
<*> switch (long "disable-pow" <> help "(development mode only) disable proof of work check")
664+
<*> optional (textOption @Fork (long "fork-upper-bound" <> help "(development mode only) the latest fork the node will enable" <> internal))
665+
<*> optional (BlockDelay <$> textOption (long "block-delay" <> help "(development mode only) the block delay in seconds per block" <> internal) )
666+
<*> switch (long "disable-pow" <> help "(development mode only) disable proof of work check" <> internal)
659667
where
660668
constructVersion cliVersion fub bd disablePow' oldVersion = winningVersion
661669
& versionBlockDelay .~ fromMaybe (_versionBlockDelay winningVersion) bd

src/Chainweb/Mempool/P2pConfig.hs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,12 @@ pMempoolP2pConfig cid = id
8080
<$< mempoolP2pConfigMaxSessionCount .:: option auto
8181
% prefixLongCid cid "mempool-p2p-max-session-count"
8282
<> helpCid cid "maximum number of sessions that are active at any time"
83+
<> internal
8384
<*< mempoolP2pConfigSessionTimeout .:: textOption
8485
% prefixLongCid cid "mempool-p2p-session-timeout"
8586
<> helpCid cid "timeout for sessions in seconds"
87+
<> internal
8688
<*< mempoolP2pConfigPollInterval .:: textOption
8789
% prefixLongCid cid "mempool-p2p-poll-interval"
8890
<> helpCid cid "poll interval for synchronizing mempools in seconds"
89-
91+
<> internal

src/Chainweb/Miner/Config.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ pCoordinationConfig = id
174174
<*< coordinationUpdateStreamTimeout .:: jsonOption
175175
% long "mining-update-stream-timeout"
176176
<> help "duration that an update stream is kept open in seconds"
177+
<> internal
177178

178179
-- -------------------------------------------------------------------------- --
179180
-- Node Mining Config
@@ -206,6 +207,7 @@ pNodeMiningConfig = id
206207
<$< nodeMiningEnabled .:: enableDisableFlag
207208
% long "node-mining"
208209
<> help "ONLY FOR TESTING NETWORKS: whether to enable in node mining"
210+
<> internal
209211

210212
defaultNodeMining :: NodeMiningConfig
211213
defaultNodeMining = NodeMiningConfig

src/Chainweb/PayloadProvider/Pact/Configuration.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ pPactProviderConfig cid = id
152152
<$< pactConfigReintroTxs .:: enableDisableFlag
153153
% prefixLongCid cid "pact-tx-reintro"
154154
<> helpCid cid "whether to enable transaction reintroduction from losing forks"
155+
<> internal
155156
<*< pactConfigMempoolP2p %:: pEnableConfigCid "pact-mempool-p2p" cid pMempoolP2pConfig
156157
<*< pactConfigBlockGasLimit . iso StableEncoding _stableEncoding .:: jsonOption
157158
% prefixLongCid cid "pact-block-gas-limit"
@@ -168,6 +169,7 @@ pPactProviderConfig cid = id
168169
<*< pactConfigPreInsertCheckTimeout .:: jsonOption
169170
% prefixLongCid cid "pact-pre-insert-check-timeout"
170171
<> helpCid cid "Max allowed time in microseconds for the transactions validation in the PreInsertCheck command."
172+
<> internal
171173
<*< pactConfigAllowReadsInLocal .:: boolOption_
172174
% prefixLongCid cid "pact-allowReadsInLocal"
173175
<> helpCid cid "Enable direct database reads of smart contract tables in local queries."

src/P2P/Node/Configuration.hs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,24 +206,30 @@ pP2pConfiguration = id
206206
<*< p2pConfigMaxSessionCount .:: option auto
207207
% prefixLong net "p2p-max-session-count"
208208
<> suffixHelp net "maximum number of sessions that are active at any time"
209+
<> internal
209210
<*< p2pConfigMaxPeerCount .:: option auto
210211
% prefixLong net "p2p-max-peer-count"
211212
<> suffixHelp net "maximum number of entries in the peer database"
213+
<> internal
212214
<*< p2pConfigSessionTimeout .:: textOption
213215
% prefixLong net "p2p-session-timeout"
214216
<> suffixHelp net "timeout for sessions in seconds"
217+
<> internal
215218
<*< p2pConfigKnownPeers %:: pLeftMonoidalUpdate
216219
(pure <$> pKnownPeerInfo)
217220
<*< p2pConfigIgnoreBootstrapNodes .:: enableDisableFlag
218221
% prefixLong net "ignore-bootstrap-nodes"
219222
<> help "when enabled the hard-coded bootstrap nodes for network are ignored"
223+
<> internal
220224
<*< p2pConfigPrivate .:: enableDisableFlag
221225
% prefixLong net "private"
222226
<> help "when enabled this node becomes private and communicates only with the initially configured known peers"
227+
<> internal
223228
<*< p2pConfigBootstrapReachability .:: option auto
224229
% prefixLong net "bootstrap-reachability"
225230
<> help "the fraction of bootstrap nodes that must be reachable at startup"
226231
<> metavar "[0,1]"
232+
<> internal
227233
<*< p2pConfigTls .:: enableDisableFlag
228234
% prefixLong net "tls"
229235
<> internal -- hidden option, only for expert use

0 commit comments

Comments
 (0)