Skip to content

Commit

Permalink
types: Remove Revoked from VSP info response.
Browse files Browse the repository at this point in the history
This was marked as deprecated in the previous release and is now being
removed.
  • Loading branch information
jholdstock committed May 29, 2024
1 parent d6258db commit bca4d2a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
1 change: 0 additions & 1 deletion docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ when a VSP is closed will result in an error.
"voted":25,
"totalvotingwallets":3,
"votingwalletsonline":3,
"revoked":3,
"expired":2,
"missed":1,
"blockheight":623212,
Expand Down
1 change: 0 additions & 1 deletion internal/webapi/vspinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ func (w *WebAPI) vspInfo(c *gin.Context) {
Voted: cachedStats.Voted,
TotalVotingWallets: cachedStats.TotalVotingWallets,
VotingWalletsOnline: cachedStats.VotingWalletsOnline,
Revoked: cachedStats.Expired + cachedStats.Missed,
Expired: cachedStats.Expired,
Missed: cachedStats.Missed,
BlockHeight: cachedStats.BlockHeight,
Expand Down
11 changes: 4 additions & 7 deletions types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,10 @@ type VspInfoResponse struct {
Voted int64 `json:"voted"`
TotalVotingWallets int64 `json:"totalvotingwallets"`
VotingWalletsOnline int64 `json:"votingwalletsonline"`
// Deprecated: Revoked will be removed in the next major version bump.
// Revoked is simply the sum of Expired and Missed, so use those instead.
Revoked int64 `json:"revoked"`
Expired int64 `json:"expired"`
Missed int64 `json:"missed"`
BlockHeight uint32 `json:"blockheight"`
NetworkProportion float32 `json:"estimatednetworkproportion"`
Expired int64 `json:"expired"`
Missed int64 `json:"missed"`
BlockHeight uint32 `json:"blockheight"`
NetworkProportion float32 `json:"estimatednetworkproportion"`
}

type FeeAddressRequest struct {
Expand Down

0 comments on commit bca4d2a

Please sign in to comment.