Skip to content

Commit 8897567

Browse files
committed
Remove dcrd RPC MixPairRequests.
The MixPairRequests RPC is longer used in this repo and in dcrd it is marked as "WARNING: This is experimental and will very likely be removed in the next version. Do not use!"
1 parent 8a49673 commit 8897567

1 file changed

Lines changed: 1 addition & 14 deletions

File tree

rpc/client/dcrd/calls.go

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2019 The Decred developers
1+
// Copyright (c) 2019-2026 The Decred developers
22
// Use of this source code is governed by an ISC
33
// license that can be found in the LICENSE file.
44

@@ -304,19 +304,6 @@ func (r *RPC) MixMessage(ctx context.Context, hash *chainhash.Hash) (mixing.Mess
304304
return msg, err
305305
}
306306

307-
// MixPairRequests returns all mixing pair request messages currently held by
308-
// the dcrd mixpool.
309-
func (r *RPC) MixPairRequests(ctx context.Context) ([]*wire.MsgMixPairReq, error) {
310-
const op errors.Op = "dcrd.MixPairRequests"
311-
312-
mixPRs := makeMessageArray[wire.MsgMixPairReq](wire.MixVersion)
313-
err := r.Call(ctx, "getmixpairrequests", &mixPRs)
314-
if err != nil {
315-
return nil, errors.E(op, err)
316-
}
317-
return mixPRs.Messages, nil
318-
}
319-
320307
// Blocks returns the blocks for each block hash.
321308
func (r *RPC) Blocks(ctx context.Context, blockHashes []*chainhash.Hash) ([]*wire.MsgBlock, error) {
322309
const op errors.Op = "dcrd.Blocks"

0 commit comments

Comments
 (0)