From 0e3fc5a40a6451eed5cf0f48d885637e08d14f91 Mon Sep 17 00:00:00 2001 From: jholdstock Date: Tue, 10 Sep 2024 10:12:51 +0100 Subject: [PATCH] jsonrpc: Allow mixaccount RPC to actually mix. This RPC has been broken since dcrwallet was converted to peer-to-peer mixing in bb04b755c125892a770bec188639d5644ea2e676. --- internal/rpc/jsonrpc/methods.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/rpc/jsonrpc/methods.go b/internal/rpc/jsonrpc/methods.go index e024f5ecb..74867c45d 100644 --- a/internal/rpc/jsonrpc/methods.go +++ b/internal/rpc/jsonrpc/methods.go @@ -5525,7 +5525,7 @@ func (s *Server) mixOutput(ctx context.Context, icmd any) (any, error) { } func (s *Server) mixAccount(ctx context.Context, icmd any) (any, error) { - if s.cfg.Mixing { + if !s.cfg.Mixing { return nil, errors.E("Mixing is not configured") } w, ok := s.walletLoader.LoadedWallet()