mirror of
https://github.com/FlipsideCrypto/dcrd.git
synced 2026-02-06 10:56:47 +00:00
parent
9e2a8e1f0c
commit
1001c19da0
@ -286,11 +286,12 @@ func createDefaultConfigFile(destinationPath string) error {
|
||||
return err
|
||||
}
|
||||
|
||||
// Read dcrd.conf from its default path.
|
||||
// Read dcrd.conf from its default path. If no dcrd.conf then just give
|
||||
// up but do not error (since it is not an error to not have a dcrd.conf).
|
||||
dcrdConfigPath := filepath.Join(dcrdHomeDir, "dcrd.conf")
|
||||
dcrdConfigFile, err := os.Open(dcrdConfigPath)
|
||||
if err != nil {
|
||||
return err
|
||||
return nil
|
||||
}
|
||||
defer dcrdConfigFile.Close()
|
||||
content, err := ioutil.ReadAll(dcrdConfigFile)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user