-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resolved issues related to column type changes #1417
Conversation
@@ -167,7 +167,7 @@ private void traceModexpResult(Trace trace, final UnsignedByte stamp) { | |||
|
|||
private void commonTrace(Trace trace, UnsignedByte stamp, int index, Bytes input, int indexMax) { | |||
trace | |||
.stamp(stamp) | |||
.stamp(stamp.toInteger()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure this is the right way to do this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looking at UnsignedByte.java
it seems ok to me. It's used to convert to BigInt to
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ras
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ras
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ras
@@ -185,14 +185,14 @@ public Trace trace(Trace trace) { | |||
trace::pStackStackItemPop3, | |||
trace::pStackStackItemPop4); | |||
|
|||
final List<Function<Bytes, Trace>> heightTracers = | |||
final List<Function<Short, Trace>> heightTracers = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Short
was suggested by Intellij
.heightNew( | ||
commonFragmentValues.hubProcessingPhase == HubProcessingPhase.TX_EXEC | ||
? commonFragmentValues.heightNew | ||
: 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
HEIGHT
and HEIGHT_NEW
vanish outside of execution rows.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ras
What I'm most worried about is the change of the constraints commit 🤔 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only minor comment
@@ -167,7 +167,7 @@ private void traceModexpResult(Trace trace, final UnsignedByte stamp) { | |||
|
|||
private void commonTrace(Trace trace, UnsignedByte stamp, int index, Bytes input, int indexMax) { | |||
trace | |||
.stamp(stamp) | |||
.stamp(stamp.toInteger()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looking at UnsignedByte.java
it seems ok to me. It's used to convert to BigInt to
.ct(Bytes.of(i)) | ||
.inst(Bytes.of(this.opCode.byteValue())) | ||
.ct(i) | ||
.inst(UnsignedByte.of(this.opCode.byteValue())) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you could use opCode.unsignedByteValue()
@@ -135,7 +134,7 @@ public void traceLog(final Log log, final int absLogNum, final int absLogNumMax, | |||
.logsData(true) | |||
.sizeTotal(log.getData().size()) | |||
.sizeAcc(index == indexMax ? log.getData().size() : 16L * (index + 1)) | |||
.sizeLimb(index == indexMax ? UnsignedByte.of(lastLimbSize) : UnsignedByte.of(16)) | |||
.sizeLimb(index == indexMax ? lastLimbSize : 16) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use LLARGE
@@ -111,7 +113,8 @@ public int lineCount() { | |||
|
|||
@Override | |||
public List<ColumnHeader> columnsHeaders() { | |||
return Trace.headers(this.lineCount()); | |||
return headers(this.lineCount()); | |||
// return Trace.headers(this.lineCount()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why keeping the comment ?
No description provided.