diff --git a/build.gradle b/build.gradle index 096269325..60ef46d63 100644 --- a/build.gradle +++ b/build.gradle @@ -36,7 +36,7 @@ ext { } //String versionEra = "4.11.08-${git.head().abbreviatedId}" -String versionEra = "6.3.02" +String versionEra = "6.4.01" archivesBaseName = 'Erachain' group 'org.erachain' //version versionEra diff --git a/src/main/java/org/erachain/controller/Controller.java b/src/main/java/org/erachain/controller/Controller.java index 564d89ced..f76d4d273 100644 --- a/src/main/java/org/erachain/controller/Controller.java +++ b/src/main/java/org/erachain/controller/Controller.java @@ -101,8 +101,8 @@ */ public class Controller extends Observable { - public static String version = "6.3.02"; - public static String buildTime = "2023-03-25 12:00:00 UTC"; + public static String version = "6.4.01"; + public static String buildTime = "2023-11-25 12:00:00 UTC"; public static final char DECIMAL_SEPARATOR = '.'; public static final char GROUPING_SEPARATOR = '`'; diff --git a/src/main/java/org/erachain/network/message/MessageFactory.java b/src/main/java/org/erachain/network/message/MessageFactory.java index a45777034..16d5004b0 100644 --- a/src/main/java/org/erachain/network/message/MessageFactory.java +++ b/src/main/java/org/erachain/network/message/MessageFactory.java @@ -2,7 +2,6 @@ import com.google.common.primitives.Ints; import org.erachain.core.block.Block; -import org.erachain.core.crypto.Crypto; import org.erachain.core.transaction.Transaction; import org.erachain.lang.Lang; import org.erachain.network.Peer; @@ -12,7 +11,6 @@ import java.io.DataInputStream; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; public class MessageFactory { @@ -90,20 +88,6 @@ public Message createTelegramGetAnswerMessage(ArrayList addresses) { return new TelegramAnswerMessage(addresses); } - protected void checkSun(byte[] checksum, byte[] data) throws Exception { - - byte[] digest = Crypto.getInstance().digest(data); - - //TAKE FOR FIRST BYTES - digest = Arrays.copyOfRange(digest, 0, Message.CHECKSUM_LENGTH); - - //CHECK IF CHECKSUM MATCHES - if (!Arrays.equals(checksum, digest)) { - throw new Exception(Lang.T("Invalid data checksum length=")); - } - - } - public Message parse(Peer sender, DataInputStream inputStream) throws Exception { //READ MESSAGE TYPE byte[] typeBytes = new byte[Message.TYPE_LENGTH];