Skip to content

Commit

Permalink
remove discovery maven
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasMLK committed Sep 14, 2023
1 parent fce9cf7 commit e059ce9
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 98 deletions.
85 changes: 0 additions & 85 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
<bcprov-jdk18on.version>1.76</bcprov-jdk18on.version>
<bcpkix-jdk18on.version>1.76</bcpkix-jdk18on.version>
<vertx-core.version>4.4.0</vertx-core.version>
<discovery.version>22.2.0</discovery.version>
<jsonrpc4j.version>1.6</jsonrpc4j.version>
<jaxws-ri.version>4.0.1</jaxws-ri.version>
<config.version>1.4.2</config.version>
Expand Down Expand Up @@ -804,90 +803,6 @@
<version>${json.version}</version>
</dependency>

<dependency>
<groupId>tech.pegasys.discovery</groupId>
<artifactId>discovery</artifactId>
<version>${discovery.version}</version>
<exclusions>
<exclusion>
<artifactId>log4j-api</artifactId>
<groupId>org.apache.logging.log4j</groupId>
</exclusion>
<exclusion>
<artifactId>log4j-core</artifactId>
<groupId>org.apache.logging.log4j</groupId>
</exclusion>
<exclusion>
<artifactId>netty-all</artifactId>
<groupId>io.netty</groupId>
</exclusion>
<exclusion>
<artifactId>guava</artifactId>
<groupId>com.google.guava</groupId>
</exclusion>
<exclusion>
<artifactId>bcprov-jdk15on</artifactId>
<groupId>org.bouncycastle</groupId>
</exclusion>
<exclusion>
<artifactId>jackson-databind</artifactId>
<groupId>com.fasterxml.jackson.core</groupId>
</exclusion>
<exclusion>
<artifactId>logging-interceptor</artifactId>
<groupId>com.squareup.okhttp3</groupId>
</exclusion>
<exclusion>
<artifactId>okhttp</artifactId>
<groupId>com.squareup.okhttp3</groupId>
</exclusion>
<exclusion>
<artifactId>jackson-core</artifactId>
<groupId>com.fasterxml.jackson.core</groupId>
</exclusion>
<exclusion>
<artifactId>jffi</artifactId>
<groupId>com.github.jnr</groupId>
</exclusion>
<exclusion>
<artifactId>jnr-constants</artifactId>
<groupId>com.github.jnr</groupId>
</exclusion>
<exclusion>
<artifactId>jnr-ffi</artifactId>
<groupId>com.github.jnr</groupId>
</exclusion>
<exclusion>
<artifactId>vertx-core</artifactId>
<groupId>io.vertx</groupId>
</exclusion>
<exclusion>
<artifactId>bytes</artifactId>
<groupId>org.apache.tuweni</groupId>
</exclusion>
<exclusion>
<artifactId>units</artifactId>
<groupId>org.apache.tuweni</groupId>
</exclusion>
<exclusion>
<artifactId>slf4j-api</artifactId>
<groupId>org.slf4j</groupId>
</exclusion>
<exclusion>
<artifactId>tuweni-bytes</artifactId>
<groupId>org.apache.tuweni</groupId>
</exclusion>
<exclusion>
<artifactId>tuweni-io</artifactId>
<groupId>org.apache.tuweni</groupId>
</exclusion>
<exclusion>
<artifactId>tuweni-units</artifactId>
<groupId>org.apache.tuweni</groupId>
</exclusion>
</exclusions>
</dependency>

<!-- https://mvnrepository.com/artifact/com.github.briandilley.jsonrpc4j/jsonrpc4j -->
<dependency>
<groupId>com.github.briandilley.jsonrpc4j</groupId>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/xdag/Wallet.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
import io.xdag.crypto.Aes;
import io.xdag.crypto.Bip32ECKeyPair;
import io.xdag.crypto.Keys;
import io.xdag.crypto.MnemonicUtils;
import io.xdag.utils.MnemonicUtils;
import io.xdag.crypto.Sign;
import io.xdag.utils.Numeric;
import io.xdag.utils.SimpleDecoder;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/xdag/cli/XdagCli.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
import io.xdag.config.Config;
import io.xdag.config.Constants;
import io.xdag.crypto.Keys;
import io.xdag.crypto.MnemonicUtils;
import io.xdag.utils.MnemonicUtils;
import io.xdag.crypto.Sign;
import io.xdag.db.SnapshotStore;
import io.xdag.db.rocksdb.DatabaseName;
Expand Down
1 change: 0 additions & 1 deletion src/main/java/io/xdag/core/Block.java
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,6 @@ public Block(BlockInfo blockInfo) {
this.info = blockInfo;
this.isSaved = true;
this.parsed = true;

}

/**
Expand Down
9 changes: 0 additions & 9 deletions src/main/java/io/xdag/crypto/Base58.java
Original file line number Diff line number Diff line change
Expand Up @@ -146,15 +146,6 @@ public static boolean checkAddress(String input) {
return Arrays.equals(checksum, actualChecksum);
}

public static boolean checkBytes24(byte[] data) {
if (data.length != 24) return false;
byte[] data20 = Arrays.copyOfRange(data, 0, data.length - 4);
byte[] checksum = Arrays.copyOfRange(data, data.length - 4, data.length);
byte[] actualChecksum = Arrays.copyOfRange(Hash.hashTwice(data20), 0, 4);
return Arrays.equals(checksum, actualChecksum);
}


private static byte divmod(byte[] number, int firstDigit, int base, int divisor) {
// this is just long division which accounts for the base of the input digits
int remainder = 0;
Expand Down
1 change: 0 additions & 1 deletion src/main/java/io/xdag/utils/WalletUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
import io.xdag.Wallet;
import io.xdag.crypto.Base58;
import io.xdag.crypto.Bip32ECKeyPair;
import io.xdag.crypto.MnemonicUtils;
import io.xdag.utils.exception.AddressFormatException;
import lombok.extern.slf4j.Slf4j;
import org.apache.tuweni.bytes.Bytes32;
Expand Down
1 change: 1 addition & 0 deletions src/test/java/io/xdag/wallet/WalletUtilsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import io.xdag.config.DevnetConfig;
import io.xdag.crypto.*;
import io.xdag.utils.BytesUtils;
import io.xdag.utils.MnemonicUtils;
import io.xdag.utils.WalletUtils;
import org.apache.tuweni.bytes.Bytes32;
import org.apache.tuweni.io.Base58;
Expand Down

0 comments on commit e059ce9

Please sign in to comment.