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

client/asset/dcr: refactor to support non-rpc wallets #1227

Merged
merged 10 commits into from
Oct 25, 2021
11 changes: 0 additions & 11 deletions client/asset/dcr/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,6 @@ func loadConfig(settings map[string]string, network dex.Network) (*Config, *chai
return nil, nil, fmt.Errorf("error parsing config: %w", err)
}

missing := ""
if cfg.RPCUser == "" {
missing += " username"
}
if cfg.RPCPass == "" {
missing += " password"
}
if missing != "" {
return nil, nil, fmt.Errorf("missing dcrwallet rpc credentials:%s", missing)
}

// Get network settings. Zero value is mainnet, but unknown non-zero cfg.Net
// is an error.
var defaultServer string
Expand Down
Loading