-
Notifications
You must be signed in to change notification settings - Fork 35
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
Feat/blockdata unique gas limit constant #1699
base: arith-dev
Are you sure you want to change the base?
Conversation
41fd16c
to
0527728
Compare
|
||
// row i + 1 | ||
// comparison to maximum | ||
wcpCallToLEQ(1, data, EWord.of(Bytes.ofUnsignedLong(LINEA_GAS_LIMIT_MAXIMUM))); | ||
wcpCallToLEQ(1, data, EWord.of(Bytes.ofUnsignedLong(GAS_LIMIT_MAXIMUM))); |
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.
👍
5e6f964
to
b507971
Compare
b507971
to
0a8da2e
Compare
This ensures that, when running `gradle build`, it also arises the `buildTracer` is run beforehand. This is necessary to ensure that all `Trace.java` files (and related) are generated.
This attempts to force the `Trace.java` files to be built before anything else important happens.
This configures the build process to be conditional on a system-wide property called "blockchain". This property can be specified on the command-line with e.g. "-Dblockchain=Ethereum" to set the target chain to Ethereum. By default, the blockchain is assumed to be Linea. Therefore, its only when running the reference tests that this property needs to be set. Furthermore, if the reference tests are run without setting this property ... then an error is reported and the build fails.
0a8da2e
to
33f92a7
Compare
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.
Basically, I think this looks good. Just unsure about the EqualsAndHashCode.Include
for BlockdataOperation
.
@@ -60,7 +57,7 @@ public class BlockdataOperation extends ModuleOperation { | |||
|
|||
private final boolean firstBlockInConflation; | |||
private final int ctMax; | |||
@EqualsAndHashCode.Include @Getter private final OpCode opCode; |
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.
This change looks odd, and potentially unexpected. Is there a specific reason we wanted to remove 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.
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.
Ok, well if you believe that's safe ... then I'm happy to merge.
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.
Yes, it's a copy paste to get the OpCode type that I got from another file. I forgot to remove the annotations, I don't see the need there
33f92a7
to
2517114
Compare
9b857ea
to
33f92a7
Compare
Regenerate trace files on tests launch to dynamically account for a different Min and Max gas limit between Ethereum and Linea
With Ethereum Gas limits
StateRefTests
BlockchainRefTests
With Linea Gas limits
FastReplayTests
Unit tests