Skip to content

Commit 08551b7

Browse files
Improve P2P topology error message
Give more context for incompatibility between bootstrap peers and new Genesis syncing mechanism.
1 parent 9017d91 commit 08551b7

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

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

+6-1
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,12 @@ readTopologyFile nc tr = do
250250
]
251251
genesisIncompatible
252252
= Text.pack $ "Cardano.Node.Configuration.Topology.readTopologyFile: "
253-
<> "Bootstrap peers are not used in Genesis consensus mode."
253+
<> "Bootstrap peers (field 'bootstrapPeers') are not compatible "
254+
<> "with Genesis syncing mode, reverting to 'DontUseBootstrapPeers'. "
255+
<> "Big ledger peers will be leveraged for decentralized syncing - it "
256+
<> "is recommened to provide an up-to-date big ledger peer snapshot file "
257+
<> "(field 'peerSnapshotFile' in topology configuration) to facilitate "
258+
<> "this process."
254259
handlerBootstrap :: Text
255260
handlerBootstrap = mconcat
256261
[ "You seem to have not configured any trustable peers. "

cardano-node/src/Cardano/Tracing/OrphanInstances/Network.hs

-1
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,6 @@ instance HasSeverityAnnotation (TracePeerSelection addr) where
465465
TraceGovernorWakeup {} -> Info
466466
TraceChurnWait {} -> Info
467467
TraceChurnMode {} -> Info
468-
-- TraceVerifyPeerSnapshot {} -> Info
469468

470469
TraceForgetBigLedgerPeers {} -> Info
471470

0 commit comments

Comments
 (0)