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

Optimistic Chain Clients #2555

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

christos-h
Copy link
Contributor

Motivation

Chain clients are pessimistic in general. ChainInfoQueries are made to ensure that chain clients are up to date with the network's state

Proposal

In certain situations, like single-owner chains or when running a node service, we can assume that the chain client is up to date and act 'optimistically'.

There is a tradeoff here, lower latency for a low probability of submitting an invalid block incurring additional fees, so the client is configurable.

This PR is still a draft as I suspect there will be some further discussion around design.

Test Plan

Regressions will be caught by tests.

Release Plan

  • Nothing to do / These changes follow the usual release cycle.

@christos-h christos-h requested review from afck and ma2bd October 1, 2024 12:18
@christos-h christos-h changed the title Optimistic clients 2 Optimistic Chain Clients Oct 1, 2024
// Update the validator with missing information, if needed.
let delivery = CrossChainMessageDelivery::NonBlocking;
self.send_chain_information(chain_id, target_block_height, delivery)
.await?;
Copy link
Contributor

Choose a reason for hiding this comment

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

Aren't we calling send_chain_update also to update the validators about a new certificate that we just created? Because then the validators definitely won't have it.

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