Skip to content

Commit

Permalink
v6.4.01 fix max data - 32 / 64 MB
Browse files Browse the repository at this point in the history
  • Loading branch information
icreator committed Nov 25, 2023
1 parent 0f08346 commit 443576f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 19 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/erachain/controller/Controller.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '`';
Expand Down
16 changes: 0 additions & 16 deletions src/main/java/org/erachain/network/message/MessageFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -12,7 +11,6 @@

import java.io.DataInputStream;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class MessageFactory {
Expand Down Expand Up @@ -90,20 +88,6 @@ public Message createTelegramGetAnswerMessage(ArrayList<String> 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];
Expand Down

0 comments on commit 443576f

Please sign in to comment.