Skip to content

Conversation

@cgeorgii
Copy link
Member

@cgeorgii cgeorgii commented Jan 26, 2026

Depends on #209

Simplifies BlockFetch logic by removing the BlocksBeingFetched tracking state and the QSem logic. Also improves logging with namespaces and more detailed messages, and adds some more info to the monitoring output.

Let's keep things simple for now so we can iterate faster. We can re-add these later when needed.

Copy link
Collaborator

@Gipphe Gipphe left a comment

Choose a reason for hiding this comment

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

This PR is arguably somewhat muddled. We've got 3 disparate set of changes happening:

  1. Removal of BlocksBeingFetched.
  2. Partial introduction of withNamespace.
  3. Rework of what Hoard.Monitoring logs.

Would you mind splitting these up into at least 2, if not 3, separate PRs? Just ping me on Slack the moment you've got them set up, and I'll provide a swift review to keep the pace going!

Other than that, this is looking very good! It'd be nice to remove the broken implementation of BlocksBeingFetched, and I love what we now get out of Hoard.Monitoring.

Base automatically changed from cgeorgii/no-bridges to main January 27, 2026 11:26
@dpulls
Copy link

dpulls bot commented Jan 27, 2026

🎉 All dependencies have been resolved !

@cgeorgii cgeorgii force-pushed the cgeorgii/simplify-block-fetch branch 4 times, most recently from 0da6d24 to 8e7a2a3 Compare January 27, 2026 15:54
Simplifies the BlockFetch logic by removing the BlocksBeingFetched
tracking state. Also improves logging with namespaces and more
detailed messages, and enhances monitoring output.
@cgeorgii cgeorgii force-pushed the cgeorgii/simplify-block-fetch branch from 8e7a2a3 to 65f9fc9 Compare January 27, 2026 15:57
@cgeorgii cgeorgii requested review from Gipphe and prednaz January 27, 2026 15:57
@Gipphe Gipphe added this pull request to the merge queue Jan 28, 2026
Merged via the queue into main with commit 2843098 Jan 28, 2026
2 checks passed
@Gipphe Gipphe deleted the cgeorgii/simplify-block-fetch branch January 28, 2026 10:08
refreshImmutableTip :: (Log :> es, NodeToClient :> es, State HoardState :> es) => Eff es ()
refreshImmutableTip = do
Log.debug "Fetching immutable tip from cardano-node..."
Log.info "Fetching immutable tip from cardano-node..."
Copy link
Member

Choose a reason for hiding this comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants