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

multi: modify PurchaseTicketCmd. #1241

Merged
merged 1 commit into from
May 31, 2018
Merged

Conversation

dnldd
Copy link
Member

@dnldd dnldd commented May 31, 2018

This renames the SplitTx field to TicketChange since it better describes
the feature being opted into. The field type was also changed to a bool
pointer.

@@ -803,7 +803,7 @@ func (c *Client) PurchaseTicketAsync(fromAccount string,
ticketFeeFloat = ticketFee.ToCoin()
}

splitTxVal := uint32(1)
splitTxVal := false
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of defaulting to one or the other, since it will also be specified in the wallet config, the JSON null could be used to not explicitly set the option in the RPC parameters, but use the configured option instead.

This renames the SplitTx field to TicketChange since it better describes
the feature being opted into. The field type was also changed to a bool
pointer.
@dnldd dnldd changed the title multi: make PurchaseTicketCmd's SplitTx field a bool pointer. multi: modify PurchaseTicketCmd. May 31, 2018
@davecgh davecgh merged commit 1e9205e into decred:master May 31, 2018
@dnldd dnldd deleted the change_split_tx_type branch June 4, 2018 23:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants