diff --git a/gradle.properties b/gradle.properties index c4f5728..551a705 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,2 +1,2 @@ releaseVersion=0.2.2-SNAPSHOT -besuVersion=23.4.1 +besuVersion=23.10.4-SNAPSHOT diff --git a/src/main/java/net/consensys/shomei/trielog/TrieLogValue.java b/src/main/java/net/consensys/shomei/trielog/TrieLogValue.java index 59d7bb2..3df1f15 100644 --- a/src/main/java/net/consensys/shomei/trielog/TrieLogValue.java +++ b/src/main/java/net/consensys/shomei/trielog/TrieLogValue.java @@ -28,7 +28,12 @@ public T getUpdated() { } @Override - public boolean isCleared() { + public boolean isLastStepCleared() { + return false; + } + + @Override + public boolean isClearedAtLeastOnce() { return cleared; } } diff --git a/src/main/java/net/consensys/shomei/trielog/ZkTrieLogFactory.java b/src/main/java/net/consensys/shomei/trielog/ZkTrieLogFactory.java index 3b007b7..0788753 100644 --- a/src/main/java/net/consensys/shomei/trielog/ZkTrieLogFactory.java +++ b/src/main/java/net/consensys/shomei/trielog/ZkTrieLogFactory.java @@ -53,7 +53,7 @@ public TrieLog create(final TrieLogAccumulator accumulator, final BlockHeader bl var codeToUpdate = accumulator.getCodeToUpdate(); var storageToUpdate = accumulator.getStorageToUpdate(); - LOG.info( + LOG.debug( "creating ZkTrieLog for block {}:{}", blockHeader.getNumber(), blockHeader.getBlockHash()); return new PluginTrieLogLayer( @@ -247,7 +247,7 @@ public static void writeInnerRlp( } else { writer.accept(output, value.getUpdated()); } - if (!value.isCleared()) { + if (!value.isClearedAtLeastOnce()) { output.writeNull(); } else { output.writeInt(1);