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,
"totalvotingwallets":3,
"votingwalletsonline":3,
"revoked":3,
"expired":2,
"missed":1,
"blockheight":623212,

View File

@ -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,

View File

@ -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 {