Skip to content

Commit

Permalink
config: Remove old ticket buyer conf warning.
Browse files Browse the repository at this point in the history
Ticket buyer options were moved to the main config file 8 years ago
by 32b6ca9, it's reasonable to assume
this warning is no longer necessary.
  • Loading branch information
jholdstock authored and jrick committed Sep 9, 2024
1 parent a83b85b commit 63a2492
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -1077,16 +1077,6 @@ func loadConfig(ctx context.Context) (*config, []string, error) {
return loadConfigError(err)
}

// Warn if user still has an old ticket buyer configuration file.
oldTBConfigFile := filepath.Join(cfg.AppDataDir.Value, "ticketbuyer.conf")
if _, err := os.Stat(oldTBConfigFile); err == nil {
log.Warnf("%s is no longer used and should be removed. "+
"Please prepend 'ticketbuyer.' to each option and "+
"move it under the [Ticket Buyer Options] section "+
"of %s\n",
oldTBConfigFile, configFilePath)
}

// Make list of old versions of testnet directories.
var oldTestNets []string
oldTestNets = append(oldTestNets, filepath.Join(cfg.AppDataDir.Value, "testnet"))
Expand Down

0 comments on commit 63a2492

Please sign in to comment.