expand tilda before passing file name into chain import

This commit is contained in:
acruikshank 2020-06-02 16:43:39 -04:00
parent de5d16eeac
commit d7a2556292

View File

@ -150,6 +150,11 @@ var DaemonCmd = &cli.Command{
chainfile := cctx.String("import-chain")
if chainfile != "" {
chainfile, err := homedir.Expand(chainfile)
if err != nil {
return err
}
if err := ImportChain(r, chainfile); err != nil {
return err
}