Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always use configured voting account when mixing #2427

Merged
merged 1 commit into from
Sep 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions wallet/createtx.go
Original file line number Diff line number Diff line change
Expand Up @@ -1510,13 +1510,13 @@ func (w *Wallet) purchaseTickets(ctx context.Context, op errors.Op,

var addrVote stdaddr.StakeAddress

// If req.UseVotingAccount is true, derive the submission
// script's address from the voting account. This is intended
// to be used with a special account type. The signing address
// for the same index is saved to the database. That address is
// later used to sign messages sent to a vspd related to this
// ticket.
if req.UseVotingAccount {
// If req.Mixing or req.UseVotingAccount is true, derive the
// submission script's address from the voting account. This
// is intended to be used with a special account type. The
// signing address for the same index is saved to the
// database. That address is later used to sign messages sent
// to a vspd related to this ticket.
if req.Mixing || req.UseVotingAccount {
var idx uint32
addrVote, idx, err = stakeAddrFunc(op, req.VotingAccount, 1)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion wallet/wallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -1545,7 +1545,7 @@ type PurchaseTicketsRequest struct {
SourceAccount uint32
MinConf int32
Expiry int32
VotingAccount uint32 // Used when Mixing == true
VotingAccount uint32 // Used when Mixing == true || UseVotingAccount == true
UseVotingAccount bool // Forces use of supplied voting account.
DontSignTx bool

Expand Down
Loading