Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update cardano-node after addition of the new BulkSync implementation #5942

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

facundominguez
Copy link

@facundominguez facundominguez commented Aug 7, 2024

This PR updates tracing and exposes the genesis configuration.

It requires IntersectMBO/ouroboros-consensus#1179. cabal.project is made to point to a back-port of the BulkSync implementation on ouroboros-network-0.16.1.1 and ouroboros-consensus-0.20.0.0.

@facundominguez facundominguez requested review from a team as code owners August 7, 2024 14:40
@amesgen amesgen marked this pull request as draft August 9, 2024 13:39
facundominguez and others added 2 commits August 21, 2024 17:07
only temporary for testing (remove this commit once we rebased on top of 9.1.1/9.2.0)
cardano-node/src/Cardano/Node/Run.hs Outdated Show resolved Hide resolved
@@ -280,6 +280,7 @@ defaultYamlHardforkViaConfig era =
, (proxyName (Proxy @TraceBlockFetchProtocolSerialised), Aeson.Bool False)
, (proxyName (Proxy @TraceBlockFetchServer), Aeson.Bool False)
, (proxyName (Proxy @TraceBlockchainTime), Aeson.Bool True)
, (proxyName (Proxy @TraceChainSyncJumping), Aeson.Bool False)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To keep with the ordering, this should be under TraceChainSyncHeaderServer.

@@ -329,7 +332,8 @@ instance FromJSON PartialNodeConfiguration where

-- Genesis syncing protocol
-- DISABLED BY DEFAULT
pncEnableGenesis <- Last <$> v .:? "EnableGenesis" .!= Just False
pncEnableGenesis <- Last <$> v .:? "EnableGenesis" .!= Just False
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why two configuration values? If the genesis config plans aren't present then we know to not enable it.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, what would you prefer instead? Something like

Genesis:
  Enable: True
  # optionally
  LowLevelOptions: 
    ....

?

 - Move most info to higher verbosity/detail level (to avoid spamming the logs)

 - Use structured logging instead of `Show` instances
Copy link

This PR is stale because it has been open 45 days with no activity.

@github-actions github-actions bot added the Stale label Oct 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants