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

Fix node-to-client support #18

Merged
merged 2 commits into from
Feb 20, 2025
Merged

Fix node-to-client support #18

merged 2 commits into from
Feb 20, 2025

Conversation

SupernaviX
Copy link
Contributor

@SupernaviX SupernaviX commented Feb 19, 2025

Context

Fully support running the connector against a local cardano node (using Cardano's node-to-client protocol) without a blockfrost key. The connector already supported using node-to-client protocol for chainsync and tx submission, but needed to fall back to blockfrost for some essential operations.

  • If connector.blockchain.socket is defined in config, the connector will use n2c over the socket at that path.
  • Otherwise, if connector.blockchain.blockfrostKey is defined, the connector will run against blockfrost.
  • If neither value is set, it will refuse to start.

Important Changes Introduced

  • Remove all calls to request_block. The node-to-client protocol doesn't support fetching individual blocks, only staying in sync with an entire chain.
  • Support using node-to-client protocol to back the balius ledger.
  • Remove explicit blockfrost references outside of the blockchain module. Now blockfrost is one blockchain provider, and the rest of the connector is decoupled from it.

Signed-off-by: Simon Gellis <simongellis@gmail.com>
Signed-off-by: Simon Gellis <simongellis@gmail.com>
@SupernaviX SupernaviX requested a review from a team as a code owner February 19, 2025 00:17
pallas-primitives = "0.32"
pallas-network = "0.32"
pallas-traverse = "0.32"
pallas-addresses = { git = "https://github.com/SupernaviX/pallas.git", rev = "2e9b8b0" }
Copy link
Contributor

Choose a reason for hiding this comment

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

Note: just waiting on this PR

txpipe/pallas#606

@SupernaviX SupernaviX merged commit f32af71 into main Feb 20, 2025
7 checks passed
@SupernaviX SupernaviX deleted the blockfrost-optional-dep branch February 20, 2025 13:39
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.

2 participants