/
api.go
27 lines (21 loc) · 1.04 KB
/
api.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package api
import (
scheduler "github.com/oasisprotocol/oasis-core/go/scheduler/api"
)
// Status is the common runtime worker status.
type Status struct {
// LatestRound is the latest runtime round as seen by the committee node.
LatestRound uint64 `json:"latest_round"`
// LatestHeight is the consensus layer height containing the runtime block for the latest round.
LatestHeight int64 `json:"latest_height"`
// LastCommitteeUpdateHeight is the consensus layer height of the last committee update.
LastCommitteeUpdateHeight int64 `json:"last_committee_update_height"`
// ExecutorRoles are the node's roles in the executor committee.
ExecutorRoles []scheduler.Role `json:"executor_roles"`
// StorageRole are the node's roles in the storage committee.
StorageRoles []scheduler.Role `json:"storage_roles"`
// IsTransactionScheduler indicates whether the node is a transaction scheduler in this round.
IsTransactionScheduler bool `json:"is_txn_scheduler"`
// Peers is the list of peers in the runtime P2P network.
Peers []string `json:"peers"`
}