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

[@kadena/Chainweb-stream-client] Receive heights event, improve reconnection strategy #397

Conversation

Takadenoshi
Copy link
Contributor

@Takadenoshi Takadenoshi commented Jun 12, 2023

Implements consumption of the heights event. Needed for the reconnection improvements outlined here. Server PR is here

This changes the .lastHeight client property to track the highest block seen across all chains based on the server's corresponding cw-node. The reconnection property minheight is now sent as .lastHeight - CONFIRMATION_DEPTH - 3 (max chain height span)

@vercel
Copy link

vercel bot commented Jun 12, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
alpha-docs ⬜️ Ignored (Inspect) Visit Preview Jun 14, 2023 2:24pm

@Takadenoshi Takadenoshi changed the base branch from master to base/chainweb-stream-release-1 June 13, 2023 16:10
@Takadenoshi
Copy link
Contributor Author

Raising against a new base branch, as the upcoming release will require a deduplication module to only emit each event once

@Takadenoshi Takadenoshi marked this pull request as ready for review June 13, 2023 16:12
@Takadenoshi Takadenoshi deleted the branch base/chainweb-stream-release-1 June 14, 2023 14:32
@Takadenoshi Takadenoshi deleted the feat/chainweb-stream-receive-heights-event branch June 14, 2023 14:36
@Takadenoshi
Copy link
Contributor Author

Nuked this as it was used to fix the CI issues

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.

3 participants