Skip to content

Commit 870b1ac

Browse files
committed
hack
1 parent 5c2fc34 commit 870b1ac

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

arithmetization/src/main/java/net/consensys/linea/zktracer/module/hub/TxTrace.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -120,15 +120,15 @@ public int lineCount() {
120120
int sum = 0;
121121

122122
if (COUNT_STACK_ONLY) {
123-
for(TraceSection section: this.trace) {
124-
for (TraceSection.TraceLine line: section.getLines()) {
123+
for (TraceSection section : this.trace) {
124+
for (TraceSection.TraceLine line : section.getLines()) {
125125
if (line.specific() instanceof StackFragment) {
126126
sum++;
127127
}
128128
}
129129
}
130130
} else {
131-
for(TraceSection section: this.trace) {
131+
for (TraceSection section : this.trace) {
132132
sum += section.getLines().size();
133133
}
134134
}

arithmetization/src/main/java/net/consensys/linea/zktracer/module/rlpAddr/RlpAddr.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ public int lineCount() {
295295
for (RlpAddrChunk chunk : this.chunkList) {
296296
traceRowSize += chunkRowSize(chunk);
297297
}
298-
return 2*traceRowSize; //TODO: temporary hack for Geth/Besu
298+
return 2 * (traceRowSize + 1); // TODO: temporary hack for Geth/Besu
299299
}
300300

301301
@Override

0 commit comments

Comments
 (0)