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:
parent
cd24244308
commit
878a53bf0d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue