Skip to content

Commit

Permalink
Update Data-Requirements.md
Browse files Browse the repository at this point in the history
Signed-off-by: Romain Ruetschi <romain@informal.systems>
  • Loading branch information
romac committed Jun 29, 2023
1 parent d9296b5 commit efc9ff5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/spec/relayer/Data-Requirements.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* [`/block_search`](#--block-search-)
* [`/block_results`](#--block-results-)
* [`/broadcast_tx_sync`](#--broadcast-tx-sync-)
* [`/broadcast_evidence`](#--broadcast-evidence-)
- [CometBFT WebSocket](#cometbft-websocket)

## CometBFT RPC
Expand Down Expand Up @@ -54,6 +55,10 @@ Used in two situations:
- To pull the header in the latest block that the application committed, in order to compute the latest app height and app timestamp
- To get the a block header at a specific/latest height and extract the consensus state from it

### `/latest_commit`, `/commit`, `/validators`

- For the CometBFT light client operations, mainly used to build `LightBlocks` and verify them

### `/abci_query`

Used in two situations:
Expand Down Expand Up @@ -119,6 +124,10 @@ Used in two situations ([diagram for reference](https://app.excalidraw.com/l/4Xq

__Note__: The above list is partly inspired from [cosmos-sdk/#11012](https://github.com/cosmos/cosmos-sdk/issues/11012) but extended and updated.

### `/broadcast_evidence`

- For submitting evidence of a chain misbehaving

## CometBFT WebSocket

The relayer connects to the node's CometBFT websocket interface and subscribes to the following events:
Expand Down

0 comments on commit efc9ff5

Please sign in to comment.