types: Remove Revoked from VSP info response.

This was marked as deprecated in the previous release and is now being
removed.
This commit is contained in:
jholdstock 2024-05-29 10:15:04 +01:00 committed by Jamie Holdstock
parent ecf2baa193
commit ba5b1b2990
3 changed files with 4 additions and 9 deletions

View File

@ -56,7 +56,6 @@ when a VSP is closed will result in an error.
"voted":25, "voted":25,
"totalvotingwallets":3, "totalvotingwallets":3,
"votingwalletsonline":3, "votingwalletsonline":3,
"revoked":3,
"expired":2, "expired":2,
"missed":1, "missed":1,
"blockheight":623212, "blockheight":623212,

View File

@ -29,7 +29,6 @@ func (w *WebAPI) vspInfo(c *gin.Context) {
Voted: cachedStats.Voted, Voted: cachedStats.Voted,
TotalVotingWallets: cachedStats.TotalVotingWallets, TotalVotingWallets: cachedStats.TotalVotingWallets,
VotingWalletsOnline: cachedStats.VotingWalletsOnline, VotingWalletsOnline: cachedStats.VotingWalletsOnline,
Revoked: cachedStats.Expired + cachedStats.Missed,
Expired: cachedStats.Expired, Expired: cachedStats.Expired,
Missed: cachedStats.Missed, Missed: cachedStats.Missed,
BlockHeight: cachedStats.BlockHeight, BlockHeight: cachedStats.BlockHeight,

View File

@ -24,13 +24,10 @@ type VspInfoResponse struct {
Voted int64 `json:"voted"` Voted int64 `json:"voted"`
TotalVotingWallets int64 `json:"totalvotingwallets"` TotalVotingWallets int64 `json:"totalvotingwallets"`
VotingWalletsOnline int64 `json:"votingwalletsonline"` VotingWalletsOnline int64 `json:"votingwalletsonline"`
// Deprecated: Revoked will be removed in the next major version bump. Expired int64 `json:"expired"`
// Revoked is simply the sum of Expired and Missed, so use those instead. Missed int64 `json:"missed"`
Revoked int64 `json:"revoked"` BlockHeight uint32 `json:"blockheight"`
Expired int64 `json:"expired"` NetworkProportion float32 `json:"estimatednetworkproportion"`
Missed int64 `json:"missed"`
BlockHeight uint32 `json:"blockheight"`
NetworkProportion float32 `json:"estimatednetworkproportion"`
} }
type FeeAddressRequest struct { type FeeAddressRequest struct {