jsonrpc/types: Remove deprecated missedtickets.

This removes the types and associated code for the deprecated
missedtickets RPC.

This is part of the overall removal of deprecated RPCs related to missed
and expired tickets.
This commit is contained in:
Dave Collins 2022-03-27 18:22:24 -05:00
parent b49e6e7dbc
commit 61ff5e50ba
No known key found for this signature in database
GPG Key ID: B8904D9D9C93D1F2
2 changed files with 0 additions and 17 deletions

View File

@ -882,16 +882,6 @@ func NewLiveTicketsCmd() *LiveTicketsCmd {
return &LiveTicketsCmd{}
}
// MissedTicketsCmd is a type handling custom marshaling and
// unmarshaling of missedtickets JSON RPC commands.
type MissedTicketsCmd struct{}
// NewMissedTicketsCmd returns a new instance which can be used to issue a JSON-RPC
// missedtickets command.
func NewMissedTicketsCmd() *MissedTicketsCmd {
return &MissedTicketsCmd{}
}
// NodeCmd defines the dropnode JSON-RPC command.
type NodeCmd struct {
SubCmd NodeSubCmd `jsonrpcusage:"\"connect|remove|disconnect\""`
@ -1207,7 +1197,6 @@ func init() {
dcrjson.MustRegister(Method("help"), (*HelpCmd)(nil), flags)
dcrjson.MustRegister(Method("invalidateblock"), (*InvalidateBlockCmd)(nil), flags)
dcrjson.MustRegister(Method("livetickets"), (*LiveTicketsCmd)(nil), flags)
dcrjson.MustRegister(Method("missedtickets"), (*MissedTicketsCmd)(nil), flags)
dcrjson.MustRegister(Method("node"), (*NodeCmd)(nil), flags)
dcrjson.MustRegister(Method("ping"), (*PingCmd)(nil), flags)
dcrjson.MustRegister(Method("reconsiderblock"), (*ReconsiderBlockCmd)(nil), flags)

View File

@ -466,12 +466,6 @@ type LiveTicketsResult struct {
Tickets []string `json:"tickets"`
}
// MissedTicketsResult models the data returned from the missedtickets
// command.
type MissedTicketsResult struct {
Tickets []string `json:"tickets"`
}
// FeeInfoBlock is ticket fee information about a block.
type FeeInfoBlock struct {
Height uint32 `json:"height"`