Prevent --gen-txs from failing silently

Instead of just failing silently if there is a non .json file or folder
in the gentx/ directory it now just skips that file or directory.

ref #940
This commit is contained in:
Adrian Brink 2018-05-13 18:24:48 -04:00
parent cd24244308
commit 878a53bf0d
No known key found for this signature in database
GPG Key ID: F61053D3FBD06353
1 changed files with 1 additions and 1 deletions

View File

@ -222,7 +222,7 @@ func processGenTxs(genTxsDir string, cdc *wire.Codec, appInit AppInit) (
for _, fo := range fos {
filename := path.Join(genTxsDir, fo.Name())
if !fo.IsDir() && (path.Ext(filename) != ".json") {
return
continue
}
// get the genTx