cardano-scaling / hydra

Implementation of the Hydra Head protocol
https://hydra.family/head-protocol/
Apache License 2.0
274 stars 84 forks source link

Add HeadId to "Greetings" message #1557

Closed Quantumplation closed 1 day ago

Quantumplation commented 1 month ago

Why

When connecting to a head, it is often helpful to know the headId. This is present in the HeadIsOpen, TxValid, etc. messages.

However, it's not in the Greetings message; That means that if we connect with ?history=no, we have no reliable message that tells us the headId.

What

Update the Greetings message to include the headId; if the hydra head is managing multiple heads, group the snapshot UTXOs by headId.

How

N/A