From b05d03812d9747dadbf789584e57be63f7e13a43 Mon Sep 17 00:00:00 2001 From: PawelGorny Date: Thu, 12 Aug 2021 13:48:05 +0200 Subject: [PATCH] v 0.13.1, patch POOL + path --- pom.xml | 2 +- .../pawelgorny/lostword/Configuration.java | 6 +++- .../java/com/pawelgorny/lostword/Main.java | 35 ++++++++++--------- 3 files changed, 25 insertions(+), 18 deletions(-) diff --git a/pom.xml b/pom.xml index 5cc02a8..2213ff9 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ com.pawelgorny lostword - 0.13.0 + 0.13.1 jar diff --git a/src/main/java/com/pawelgorny/lostword/Configuration.java b/src/main/java/com/pawelgorny/lostword/Configuration.java index e065490..1671fbc 100644 --- a/src/main/java/com/pawelgorny/lostword/Configuration.java +++ b/src/main/java/com/pawelgorny/lostword/Configuration.java @@ -98,7 +98,11 @@ private void parseScript(String targetAddress) { } } } - System.out.println("Using script " + DBscriptType); + if (this.coin.equals(Configuration.ETHEREUM)){ + System.out.println("Using ETHEREUM"); + }else { + System.out.println("Using script " + DBscriptType); + } } private void parsePath(String path) { diff --git a/src/main/java/com/pawelgorny/lostword/Main.java b/src/main/java/com/pawelgorny/lostword/Main.java index da43ab2..88c1eaa 100644 --- a/src/main/java/com/pawelgorny/lostword/Main.java +++ b/src/main/java/com/pawelgorny/lostword/Main.java @@ -109,24 +109,27 @@ private static Configuration readConfiguration(String file) { words.add(line); } }else if (WORK.POOL.equals(work)){ - if (line.startsWith(Configuration.UNKNOWN_CHAR)){ - words.add(Configuration.UNKNOWN_CHAR); - wordsPool.add(new ArrayList<>(Configuration.MNEMONIC_CODE.getWordList())); - }else { - String[] potentialWords = line.split(" "); - for (int i=0; i(Configuration.MNEMONIC_CODE.getWordList())); + }else { + String[] potentialWords = line.split(" "); + for (int i=0; i