Skip to content

Commit

Permalink
hack
Browse files Browse the repository at this point in the history
  • Loading branch information
delehef committed Dec 6, 2023
1 parent 5c2fc34 commit 870b1ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,15 +120,15 @@ public int lineCount() {
int sum = 0;

if (COUNT_STACK_ONLY) {
for(TraceSection section: this.trace) {
for (TraceSection.TraceLine line: section.getLines()) {
for (TraceSection section : this.trace) {
for (TraceSection.TraceLine line : section.getLines()) {
if (line.specific() instanceof StackFragment) {
sum++;
}
}
}
} else {
for(TraceSection section: this.trace) {
for (TraceSection section : this.trace) {
sum += section.getLines().size();
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ public int lineCount() {
for (RlpAddrChunk chunk : this.chunkList) {
traceRowSize += chunkRowSize(chunk);
}
return 2*traceRowSize; //TODO: temporary hack for Geth/Besu
return 2 * (traceRowSize + 1); // TODO: temporary hack for Geth/Besu
}

@Override
Expand Down

0 comments on commit 870b1ac

Please sign in to comment.