Skip to content

Commit

Permalink
Revise VotersTotalWeight to OnlineTotalWeight
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric-Warehime committed Aug 10, 2022
1 parent a1cffbc commit c409cb9
Show file tree
Hide file tree
Showing 8 changed files with 380 additions and 380 deletions.
332 changes: 166 additions & 166 deletions api/generated/common/routes.go

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions api/generated/common/types.go

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

400 changes: 200 additions & 200 deletions api/generated/v2/routes.go

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions api/generated/v2/types.go

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

2 changes: 1 addition & 1 deletion api/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -1144,7 +1144,7 @@ func (si *ServerImplementation) fetchBlock(ctx context.Context, round uint64) (g
NextRound: uint64Ptr(uint64(stpfTracking.StateProofNextRound)),
Type: uint64Ptr(uint64(orderedTrackingTypes[i])),
VotersCommitment: byteSliceOmitZeroPtr(stpfTracking.StateProofVotersCommitment),
VotersTotalWeight: uint64Ptr(stpfTracking.StateProofVotersTotalWeight.Raw),
OnlineTotalWeight: uint64Ptr(stpfTracking.StateProofOnlineTotalWeight.Raw),
}
trackingArray[orderedTrackingTypes[i]] = thing1
}
Expand Down
4 changes: 2 additions & 2 deletions api/indexer.oas2.json
Original file line number Diff line number Diff line change
Expand Up @@ -2427,8 +2427,8 @@
"type": "string",
"format": "byte"
},
"voters-total-weight": {
"description": "\\[t\\] The total number of microalgos held by accounts in the StateProof Vector Commitment.",
"online-total-weight": {
"description": "\\[t\\] The total number of microalgos held by the online accounts during the StateProof round.",
"type": "integer"
},
"next-round": {
Expand Down
8 changes: 4 additions & 4 deletions api/indexer.oas3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1599,6 +1599,10 @@
"description": "\\[n\\] Next round for which we will accept a state proof transaction.",
"type": "integer"
},
"online-total-weight": {
"description": "\\[t\\] The total number of microalgos held by the online accounts during the StateProof round.",
"type": "integer"
},
"type": {
"description": "State Proof Type. Note the raw object uses map with this as key.",
"type": "integer",
Expand All @@ -1609,10 +1613,6 @@
"format": "byte",
"pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$",
"type": "string"
},
"voters-total-weight": {
"description": "\\[t\\] The total number of microalgos held by accounts in the StateProof Vector Commitment.",
"type": "integer"
}
},
"type": "object"
Expand Down
2 changes: 1 addition & 1 deletion api/test_resources/stpf_block_response.json

Large diffs are not rendered by default.

0 comments on commit c409cb9

Please sign in to comment.