Skip to content

Commit

Permalink
Merge pull request #365 from spacemeshos/v2alpha1-extend-network-info
Browse files Browse the repository at this point in the history
v2alpha1: Add labels_per_unit to network info
  • Loading branch information
kacpersaw authored Aug 5, 2024
2 parents 2f6a4e8 + 805253b commit 6bd29cb
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 24 deletions.
58 changes: 34 additions & 24 deletions release/go/spacemesh/v2alpha1/network.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions release/openapi/swagger/src/api.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,10 @@
"hrp": {
"type": "string"
},
"labelsPerUnit": {
"type": "string",
"format": "uint64"
},
"layerDuration": {
"type": "string",
"title": "duration of each layer in the network, specified as a duration"
Expand Down
1 change: 1 addition & 0 deletions spacemesh/v2alpha1/network.proto
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ message NetworkInfoResponse {
string hrp = 5;
uint32 effective_genesis_layer = 6; // effective genesis layer, i.e., first layer after genesis initialization period
uint32 layers_per_epoch = 7; // number of layers per epoch
uint64 labels_per_unit = 8;
}

message NetworkInfoRequest {}
Expand Down

0 comments on commit 6bd29cb

Please sign in to comment.