-
Notifications
You must be signed in to change notification settings - Fork 322
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: add totalFees
to global variables
#6439
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @just-mitch and the rest of your teammates on |
Changes to circuit sizes
🧾 Summary (100% most significant diffs)
Full diff report 👇
|
6518c54
to
7c310f1
Compare
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. 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 kernel circuit run across all benchmarks.
Stats on running time collected for app circuits
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 size based on fee payment method | Metric | | Transaction processing duration by data writes.
|
@@ -230,7 +230,10 @@ export const deployL1Contracts = async ( | |||
abi: contractsToDeploy.gasToken.contractAbi, | |||
client: walletClient, | |||
}); | |||
await gasToken.write.mint([rollupAddress.toString(), 100000000000000000000n], {} as any); | |||
const receipt = await gasToken.write.mint([rollupAddress.toString(), 100000000000000000000n], {} as any); | |||
await publicClient.waitForTransactionReceipt({ |
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.
Thank you @spalladino !
7c310f1
to
ac434c9
Compare
Docs PreviewHey there! 👋 You can check your preview at https://66466af984ebc7077ad9f228--aztec-docs-dev.netlify.app |
b1059a3
to
1bb0586
Compare
1bb0586
to
b5a573e
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.
Code looks good. However, GlobalVariables
are also referenced from the CombinedConstantData
that are used across the kernel circuits, and are constant across the entire block. total_fees
does not seem to fit the bill in there, since it's accumulated across the block, so maybe it should be directly in the Header
and not within its global_variables
?
@spalladino I was kind of thinking the same thing. @LeilaWang , @LHerskind . Thoughts? |
Agree with Palla! |
Close in favor of #6522 |
Add
totalFees
to global variables. Update the spec.Note: we could have had the L1 rollup contract iterate over all the tx_effects and pay out that way. Doing it ourselves in the circuit feels cheaper though, and maybe safer for a world where: