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 #416

Conversation

Takadenoshi
Copy link
Contributor

Implements consumption of the heights event. Needed for the reconnection improvements #275 (comment). Server kadena-io/chainweb-stream#5

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)

Raising against a new base branch, as the upcoming release will require a deduplication module to only emit each event once. This will be raised separately against the same base branch

@vercel
Copy link

vercel bot commented Jun 14, 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) Jun 14, 2023 3:56pm

@Takadenoshi Takadenoshi merged commit 2c4aa80 into base/chainweb-stream-release-1 Jun 21, 2023
@Takadenoshi Takadenoshi deleted the feat/chainweb-stream-receive-heights-event branch June 21, 2023 13:13
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