Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 1 addition & 15 deletions rpc/jsonrpc/types/methods.go
Original file line number Diff line number Diff line change
@@ -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.

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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)},
Expand Down
Loading