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

Increment/Decrement transaction observation should not depend on off-chain state #1895

Open
ch1bo opened this issue Mar 13, 2025 · 0 comments

Comments

@ch1bo
Copy link
Member

ch1bo commented Mar 13, 2025

Context & versions

We saw this when trying out #1894

Steps to reproduce

  1. Open a hydra head
  2. Do some commits and decommits
  3. Stop the hydra-node and wipe state (= fatal crash of disk)
  4. Start the hydra-node with a suitable --start-chain-from
  5. Look at the state of the node

Actual behavior

The hydra-node will ignore increment and decrement transactions. It's internal state will not represent what happened on-chain.

Expected behavior

Although losing the snapshots and other off-chain state, the hydra-node should still know at least what state the head on L1 is.

Implementation idea

The HeadLogic (and specification) rules for handling chain events should never be conditional. We must not ignore the observation from the chain, even if it is inconsistent with our world view (i.e. HeadState).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Triage 🏥
Development

No branches or pull requests

1 participant