-
Notifications
You must be signed in to change notification settings - Fork 234
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
refactor: l1 l2 messages cleanup #5270
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
049b931
to
ee492ca
Compare
1e18fc6
to
aff6f38
Compare
29497fd
to
5388dce
Compare
aff6f38
to
98a433b
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.
I think the issues are related to the empty tree values. Seems like it is the tests that need the message boxes, and some of the cleanup here have broken it 🤔
047f11c
to
ecae75d
Compare
ecae75d
to
93ac685
Compare
93ac685
to
e5157b3
Compare
df3f298
to
4d3722f
Compare
This reverts commit 4d3722f.
5fc9687
to
e779f92
Compare
*/ | ||
nextEthBlockNumber: bigint; | ||
lastProcessedL1BlockNumber: bigint; |
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.
Did this change because in places where we consume the value we need the last processed block num and not the next one after it so I think it makes sense to pass the value around in that format.
*/ | ||
getL1ToL2MessageIndexAndSiblingPath( | ||
blockNumber: BlockNumber, | ||
getL1ToL2MessageMembershipWitness( |
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.
Did this change because the oracle which calls this func is called getL1ToL2MessageMembershipWitness as well so it makes sense to have it consistent.
* @param l1ToL2Message - The L1 to L2 message to check. | ||
* @returns Whether the message is synced and ready to be included in a block. | ||
*/ | ||
isL1ToL2MessageSynced(l1ToL2Message: Fr): Promise<boolean>; |
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.
Added this func so that I can keep on polling for the message to be available instead of having a hardcoded sleep timeout and hoping that the archiver manages to catch up in that time. Should result in more robust tests.
@@ -64,6 +64,6 @@ export class L1ToL2MessageStore { | |||
return indexInTheWholeTree; | |||
} | |||
} | |||
throw new Error(`L1 to L2 message index not found in the store for message ${l1ToL2Message.toString()}`); | |||
return undefined; |
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.
Returning undefined now because that is how other endpoints returning indices behave and it makes it more convenient for the implementation of the new isL1ToL2MessageSynced
func on aztec node.
Benchmark resultsMetrics with a significant change:
Detailed resultsAll benchmarks are run on txs on the This benchmark source data is available in JSON format on S3 here. Values are compared against data from master at commit L2 block published to L1Each column represents the number of txs on an L2 block published to L1.
L2 chain processingEach column represents the number of blocks on the L2 chain where each block has 16 txs.
Circuits statsStats on running time and I/O sizes collected for every circuit run across all benchmarks.
Tree insertion statsThe duration to insert a fixed batch of leaves into each tree type.
MiscellaneousTransaction sizes based on how many contract classes are registered in the tx.
Transaction processing duration by data writes.
|
Changes to circuit sizes
🧾 Summary (100% most significant diffs)
Full diff report 👇
|
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.
Good stuff. 🚢
Fixes #5264