Skip to content

Commit

Permalink
[release-v2.0] jsonrpc: Allow mixaccount RPC to actually mix.
Browse files Browse the repository at this point in the history
This RPC has been broken since dcrwallet was converted to peer-to-peer
mixing in bb04b75.

Backport of f5ebc3c.
  • Loading branch information
jholdstock authored and jrick committed Nov 11, 2024
1 parent bf73f3c commit cb88e4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/rpc/jsonrpc/methods.go
Original file line number Diff line number Diff line change
Expand Up @@ -5641,7 +5641,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()
Expand Down

0 comments on commit cb88e4f

Please sign in to comment.