Skip to content

Commit

Permalink
[release-v2.0] Use correct account for mixed ticket split txns.
Browse files Browse the repository at this point in the history
This was accidentally changed during the move to peer-to-peer mixing.

Backport of 532aa67.
  • Loading branch information
jholdstock authored and jrick committed Nov 11, 2024
1 parent 8c66062 commit e45749a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wallet/createtx.go
Original file line number Diff line number Diff line change
Expand Up @@ -1106,7 +1106,7 @@ func (w *Wallet) mixedSplit(ctx context.Context, req *PurchaseTicketsRequest, ne
if change != nil && dcrutil.Amount(change.Value) < smallestMixChange(relayFee) {
change = nil
}
gen := w.makeGen(ctx, req.MixedAccount, req.MixedAccountBranch)
gen := w.makeGen(ctx, req.MixedSplitAccount, req.MixedAccountBranch)
expires := w.dicemixExpiry(ctx)
cj := mixclient.NewCoinJoin(gen, change, int64(neededPerTicket), expires, uint32(req.Count))
for i, in := range atx.Tx.TxIn {
Expand Down

0 comments on commit e45749a

Please sign in to comment.