Skip to content

Commit

Permalink
clarify FOUNDCONTENT response for beacon network
Browse files Browse the repository at this point in the history
  • Loading branch information
acolytec3 authored Oct 23, 2023
1 parent 0905bd5 commit f485085
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions beacon-chain/beacon-network.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,22 +189,24 @@ of use to the node. The content key requires the `finalized_slot` to be provided
so that this object can be more efficiently gossiped. Nodes should decide to
reject an `LightClientFinalityUpdate` in case it is not newer than the one they
already have.
For `FindContent` requests, a node will either know the last previous finalized
slot, if it has been following the updates, or it will have to guess slots that
are potentially finalized.
For `FindContent` requests:
- a requesting node will either know the last previous finalized slot, if it has been following the updates, or it will
have to guess slots that are potentially finalized.
- a responding node SHOULD reply with its current finality update if it corresponds the same or a newer slot than the one
specified in the `light_client_finality_update_key` in the `FINDCONTENT` message.

#### LightClientOptimisticUpdate

```
light_client_optimistic_update_key = Container(optimistic_slot: uint64)
light_client_optimistic_update_key = Container(signature_slot: uint64)
selector = 0x03
content = ForkDigest + SSZ.serialize(light_client_optimistic_update)
content_key = selector + SSZ.serialize(light_client_optimistic_update_key)
```

> The `LightClientOptimisticUpdate` objects are ephemeral and only the latest is
of use to the node. The content key requires the `optimistic_slot` (corresponding to
of use to the node. The content key requires the `signature_slot` (corresponding to
the `signature_slot` in the the update) to be provided so that this
object can be more efficiently gossiped. Nodes should decide to reject an
`LightClientOptimisticUpdate` in case it is not newer than the one they already have.
Expand Down

0 comments on commit f485085

Please sign in to comment.