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

Remove duplicated and unused ticketbuyer config options. #507

Merged
merged 1 commit into from
Jan 3, 2017
Merged

Remove duplicated and unused ticketbuyer config options. #507

merged 1 commit into from
Jan 3, 2017

Conversation

dajohi
Copy link
Member

@dajohi dajohi commented Jan 3, 2017

Fixes #467

@jrick jrick added the WIP label Jan 3, 2017
case ticketbuyer.TicketFeeMedian:
default:
str := "%s: Invalid fee source '%s'"
err := fmt.Errorf(str, "loadTicketBuyerConfig", cfg.TBOpts.FeeSource)
Copy link
Member

Choose a reason for hiding this comment

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

if this is supposed to be the function name of the caller, it's not right.

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed

case ticketbuyer.PriceTargetDual:
default:
str := "%s: Invalid average price mode '%s'"
err := fmt.Errorf(str, "loadTicketBuyerConfig", cfg.TBOpts.AvgPriceMode)
Copy link
Member

Choose a reason for hiding this comment

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

here too

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed.

@jrick
Copy link
Member

jrick commented Jan 3, 2017

Looks good, only thing I think is missing is to add a warning when the old ticketbuyer config is still found. We should inform the user about this so if they haven't yet, they know to migrate their settings over into the wallet config and remove the old file.

@jrick jrick changed the title WIP: Remove duplicated and unused ticketbuyer config options. Remove duplicated and unused ticketbuyer config options. Jan 3, 2017
@jrick jrick removed the WIP label Jan 3, 2017
The ticketbuyer configuration now lives in the main configuration file
under the [Ticket Buyer Options] section.
@jrick jrick merged commit 32b6ca9 into decred:master Jan 3, 2017
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.

2 participants