Skip to content

Commit

Permalink
0.5.6 - bitcoinj updated, saving all valid WIFs for no-END workers
Browse files Browse the repository at this point in the history
  • Loading branch information
PawelGorny committed Nov 25, 2021
1 parent 7009f7e commit d1f685b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@

<groupId>com.pawelgorny</groupId>
<artifactId>wifSolver</artifactId>
<version>0.5.5</version>
<version>0.5.6</version>
<packaging>jar</packaging>

<dependencies>
<dependency>
<groupId>org.bitcoinj</groupId>
<artifactId>bitcoinj-core</artifactId>
<version>0.15.10</version>
<version>0.16.1</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
Expand Down
8 changes: 7 additions & 1 deletion src/main/java/com/pawelgorny/wifsolver/Worker.java
Original file line number Diff line number Diff line change
Expand Up @@ -127,14 +127,20 @@ protected String workThread(String suspect){
if (configuration.getAddress() != null) {
if (Arrays.equals(configuration.getAddressHash(), ecKey.getPubKeyHash())) {
Address foundAddress = LegacyAddress.fromKey(Configuration.getNetworkParameters(), ecKey);
String data = suspect + " -> " + foundAddress.toString();
if (DUMMY_CHECKSUM) {
suspect = rewriteWIF(suspect);
}
String data = suspect + " -> " + foundAddress.toString();
addResult(data);
System.out.println(data);
return suspect;
}
if (!configuration.getWork().equals(WORK.END)) {
Address foundAddress = LegacyAddress.fromKey(Configuration.getNetworkParameters(), ecKey);
String data = suspect + " -> " + foundAddress.toString();
addResult(data);
System.out.println(data);
}
} else {
Address foundAddress = LegacyAddress.fromKey(Configuration.getNetworkParameters(), ecKey);
if (DUMMY_CHECKSUM) {
Expand Down

0 comments on commit d1f685b

Please sign in to comment.