Skip to content

Commit

Permalink
wallet: Use purchase acct for voting if not mixing
Browse files Browse the repository at this point in the history
In the case where mixing is disabled and no voting account has been set,
the purchase account should be used as a fallback to derive a ticket
voting address.
  • Loading branch information
jholdstock authored and jrick committed Sep 9, 2024
1 parent acb201e commit 5cd89f5
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 @@ -1552,7 +1552,7 @@ func (w *Wallet) purchaseTickets(ctx context.Context, op errors.Op,
addrVote = w.ticketAddress
}
if addrVote == nil {
addrVote, _, err = stakeAddrFunc(op, req.VotingAccount, 1)
addrVote, _, err = stakeAddrFunc(op, req.SourceAccount, 1)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 5cd89f5

Please sign in to comment.