-
Notifications
You must be signed in to change notification settings - Fork 87
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
Add HeadState / Snapshot to the Greetings message #823
Comments
Can we make content of Greetings welcome message different depending if somebody chose history=1 or history=0? If somebody chose history=1, they have all the data replayed to them (they can just ignore it and cherry-pick what they want) but if they chose history=0, they have nothing but most likely they need at least two things:
history=0
|
A quick hack (I'm thinking to solve this properly, but still need to write the ADR) could be to:
This comes at the cost of having another piece of data in memory which is in principle redundant to the core |
We'll be grooming this 👆 on tuesday and likely putting it on the roadmap as a next item. |
This is a candidate for https://github.com/input-output-hk/hydra/milestone/8 |
The fixes which you made, are they only applicable to state or also to utxo? I realised that if I only have state and no utxo, then I have to issue GetUTxO command anyway. It would be good to get both but only when history=0. When history=1 then I need neither state nor utxo because HeadIsOpen gives UTxO and state can be figured out easily as well when history is there. |
What to do for
@matiwinnetou What would be best for you? |
null is fine |
no field = null after all in JSON |
Why
Now that it is possible to pass history=0 when opening a websocket connection and Greetings message is sent after history had been replayed (if somebody chose history=1), what becomes problematic is knowing in what state current remote hydra-node / network is. There is no GetHydraState request or anything like this.
What
We would like to request that Greetings message returns a hydra client current hydra state.
How
Greetings message could look like this:
state field corresponds directly to the Hydra State from the UML's state diagram and can be one of the following:
The text was updated successfully, but these errors were encountered: