From 09aff5dad2949ca56fbe2e3d428f887e0819691e Mon Sep 17 00:00:00 2001 From: jholdstock Date: Tue, 3 Feb 2026 11:42:37 +0000 Subject: [PATCH] types: Remove non-existent createvotingaccount --- rpc/jsonrpc/types/methods.go | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/rpc/jsonrpc/types/methods.go b/rpc/jsonrpc/types/methods.go index 356138ae2..9ea4370a1 100644 --- a/rpc/jsonrpc/types/methods.go +++ b/rpc/jsonrpc/types/methods.go @@ -1,5 +1,5 @@ // Copyright (c) 2014 The btcsuite developers -// Copyright (c) 2015-2025 The Decred developers +// Copyright (c) 2015-2026 The Decred developers // Use of this source code is governed by an ISC // license that can be found in the LICENSE file. @@ -147,19 +147,6 @@ func NewCreateNewAccountCmd(account string) *CreateNewAccountCmd { } } -// CreateVotingAccountCmd is a type for handling custom marshaling and -// unmarshalling of createvotingaccount JSON-RPC command. -type CreateVotingAccountCmd struct { - Name string - PubKey string - ChildIndex *uint32 `jsonrpcdefault:"0"` -} - -// NewCreateVotingAccountCmd creates a new CreateVotingAccountCmd. -func NewCreateVotingAccountCmd(name, pubKey string, childIndex *uint32) *CreateVotingAccountCmd { - return &CreateVotingAccountCmd{name, pubKey, childIndex} -} - // DumpPrivKeyCmd defines the dumpprivkey JSON-RPC command. type DumpPrivKeyCmd struct { Address string @@ -1211,7 +1198,6 @@ func init() { {"createmultisig", (*CreateMultisigCmd)(nil)}, {"createnewaccount", (*CreateNewAccountCmd)(nil)}, {"createsignature", (*CreateSignatureCmd)(nil)}, - {"createvotingaccount", (*CreateVotingAccountCmd)(nil)}, {"disapprovepercent", (*DisapprovePercentCmd)(nil)}, {"discoverusage", (*DiscoverUsageCmd)(nil)}, {"dumpprivkey", (*DumpPrivKeyCmd)(nil)},