rounds
This page describes the structure of the rounds
index (Elasticsearch), and also depicts a few examples of how to query it.
_id
The _id
field of this index is composed in this way: {shardID}_{round}
(example: 2_10905514
)
Fields
Field | Description |
---|---|
round | The round field represents the number of the round. |
signersIndexes | The signersIndexes field is an array that contains the indices of the validators that should sign the block from this round. |
blockWasProposed | The blockWasProposed field is true if a block was proposed and executed in this round. |
shardId | The shardId field represents the shard the round belongs to. |
epoch | The epoch field represents the epoch the round belongs to. |
timestamp | The timestamp field represents the timestamp of the round. |
Query examples
Fetch the latest rounds for a shard when block was produced
curl --request GET \
--url ${ES_URL}/rounds/_search \
--header 'Content-Type: application/json' \
--data '{
"query": {
"match": {
"shardId": 1
}
},
"sort": [
{
"timestamp": {
"order": "desc"
}
}
],
"size":10
}'