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:
parent
ecf2baa193
commit
ba5b1b2990
@ -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,
|
||||||
|
|||||||
@ -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,
|
||||||
|
|||||||
@ -24,9 +24,6 @@ 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.
|
|
||||||
// Revoked is simply the sum of Expired and Missed, so use those instead.
|
|
||||||
Revoked int64 `json:"revoked"`
|
|
||||||
Expired int64 `json:"expired"`
|
Expired int64 `json:"expired"`
|
||||||
Missed int64 `json:"missed"`
|
Missed int64 `json:"missed"`
|
||||||
BlockHeight uint32 `json:"blockheight"`
|
BlockHeight uint32 `json:"blockheight"`
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user