SHA256
Разделить среды и закрепить лицензии в HEADER 1.0
This commit is contained in:
@@ -26,7 +26,7 @@ public class M5_FORK_CHECK {
|
||||
check(Arrays.equals(fork.prevLineHash32,hex.parseHex(history.get(fork.prevLineNumber+1).split("\t")[3])));
|
||||
check(fork.reasonCode==3 && fork.comment.equals("test\nFORK"));
|
||||
check(fork.forkPointTimestampMs==(1700000000L+cutoff)*1000 && fork.parentTipTimestampMs==1700000007000L);
|
||||
check(b.getCoreDataItem().hasTag("App","test5595"));
|
||||
check(b.getCoreDataItem().hasTag("App","test5570"));
|
||||
byte[] bad=raw.clone();bad[bad.length-1]^=1;
|
||||
try {BchBlockEntry.fromCoreContent(bad);throw new AssertionError("tampering accepted");} catch(IllegalArgumentException expected){}
|
||||
count++;
|
||||
|
||||
Reference in New Issue
Block a user