Skip to content

Conversation

@larskuhtz
Copy link

The implementation of recent headers uses as upper bound for the respective branch query the block on the respective chain form the latest cut. However, queried heights are computed based on the lastest height on chain 0. In cases when chain 0 is ahead of the queries chain the query fails if for small confirmation depths.

This PR fixes this issues by always using the height of the block on the respective chain as reference for computing queried block heights.

I tested this locally in an application that uses the chainwebjs package.

@changeset-bot
Copy link

changeset-bot bot commented Sep 23, 2025

⚠️ No Changeset found

Latest commit: e6d01f2

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link

vercel bot commented Sep 23, 2025

@larskuhtz is attempting to deploy a commit to the Kadena Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link

vercel bot commented Sep 23, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
preview-dev-wallet Ready Ready Preview Comment Sep 23, 2025 5:21pm

@github-actions
Copy link
Contributor

This PR is stale because it is open for 60 days with no activity

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant