From 878a53bf0def7c4aa1d76145383dfda204514b5b Mon Sep 17 00:00:00 2001 From: Adrian Brink Date: Sun, 13 May 2018 18:24:48 -0400 Subject: [PATCH] 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 --- server/init.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/init.go b/server/init.go index ffb84f27c4..8912d2a6f7 100644 --- a/server/init.go +++ b/server/init.go @@ -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