From 0c5016ae6277e59de1d78bb8b59d46286ab782c7 Mon Sep 17 00:00:00 2001 From: jholdstock Date: Thu, 31 Aug 2023 09:13:04 +0100 Subject: [PATCH] types: Add expired/missed to /vspinfo response. Adding fields for expired/missed to /vspinfo response, deprecate revoked. This will need a minor version bump in the types module. --- types/types.go | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/types/types.go b/types/types.go index 1b3cc88..cb18475 100644 --- a/types/types.go +++ b/types/types.go @@ -24,9 +24,13 @@ type VspInfoResponse struct { Voted int64 `json:"voted"` TotalVotingWallets int64 `json:"totalvotingwallets"` VotingWalletsOnline int64 `json:"votingwalletsonline"` - Revoked int64 `json:"revoked"` - BlockHeight uint32 `json:"blockheight"` - NetworkProportion float32 `json:"estimatednetworkproportion"` + // 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"` } type FeeAddressRequest struct {