Skip to content

Commit

Permalink
hack: make loginfo counts closer to Geth
Browse files Browse the repository at this point in the history
  • Loading branch information
delehef committed Dec 12, 2023
1 parent 1c9cfc4 commit 62726bc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ public Hub() {
this.rom,
this.shf,
this.trm,
// this.txnData,
// this.txnData,
this.stp,
this.wcp),
this.precompileLimitModules.stream())
Expand Down Expand Up @@ -270,7 +270,7 @@ public List<Module> getModulesToTrace() {
this.romLex,
this.shf,
this.stp,
// this.txnData,
// this.txnData,
this.wcp);
}

Expand All @@ -295,7 +295,7 @@ public List<Module> getModulesToCount() {
this.rom,
this.shf,
this.trm,
// this.txnData,
// this.txnData,
this.wcp),
this.precompileLimitModules.stream())
.toList();
Expand Down Expand Up @@ -507,7 +507,7 @@ void triggerModules(MessageFrame frame) {
// TODO: this.oob.tracePreOpcode(frame);
}
if (this.pch.signals().stp()) {
// this.stp.tracePreOpcode(frame);
// this.stp.tracePreOpcode(frame);
}
if (this.pch.signals().exp()) {
this.modexp.tracePreOpcode(frame);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,7 @@ public void commit(List<MappedByteBuffer> buffers) {
}

private int txRowSize(RlpTxrcptChunk tx) {
int txRowSize = 0;
if (tx.logs().isEmpty()) {
return 1;
} else {
for (Log log : tx.logs()) {
txRowSize += ctMax(log) + 1;
}
return txRowSize;
}
return tx.logs().size();
}

public void traceTxWoLog(
Expand Down

0 comments on commit 62726bc

Please sign in to comment.