-
Notifications
You must be signed in to change notification settings - Fork 284
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: stop calling public kernels #9971
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
065a139
to
889d1c9
Compare
0ba3950
to
269acb7
Compare
269acb7
to
4627edb
Compare
4627edb
to
1d3aaa8
Compare
1d3aaa8
to
9a4706b
Compare
5a77cd3
to
7e3c14c
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.
LGTM but I'll let Leila approve due to the kernel related changes.
@@ -56,7 +56,7 @@ export class ProverNode implements ClaimsMonitorHandler, EpochMonitorHandler, Pr | |||
private readonly contractDataSource: ContractDataSource, | |||
private readonly worldState: WorldStateSynchronizer, | |||
private readonly coordination: ProverCoordination & Maybe<Service>, | |||
private readonly simulator: SimulationProvider, | |||
private readonly _simulator: SimulationProvider, |
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.
Should this be marked as "to be deleted"?
@@ -40,13 +40,13 @@ export class SequencerClient { | |||
contractDataSource: ContractDataSource, | |||
l2BlockSource: L2BlockSource, | |||
l1ToL2MessageSource: L1ToL2MessageSource, | |||
simulationProvider: SimulationProvider, | |||
_simulationProvider: SimulationProvider, |
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.
Same here. Do we have plans to remove this? Or will it be used in another PR?
// sanity check to avoid merging the same forked trace twice | ||
assert(!this.alreadyMergedIntoParent, 'Cannot merge forked state that has already been merged into its parent!'); |
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.
Hmm so, this.merge merges forkedState INTO this, IIUC? Why does it matter if this. alreadyMergedIntoParent
is true? Shouldn't we be checking for forkedState. alreadyMergedIntoParent
?
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 don't see where alreadyMergedIntoParent is set to true (for the journal itself, I see it for the trace).
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.
The parent doesn't keep track of its forks. And it could have children formed and merged multiple times.
We just don't want to let a specific fork get merged multiple times.
And good catch, I must've missed that in journal
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.
Ah, you're right. I was confused. It should check forkedState.alreadyMerged! Good catch.
// sanity check to avoid merging the same forked trace twice | ||
assert(!this.alreadyMergedIntoParent, 'Cannot merge a forked trace that has already been merged into its parent!'); | ||
forkedTrace.alreadyMergedIntoParent = true; |
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.
Same comment about this vs forkedTrace
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.
LGTM!
* master: (281 commits) fix: don't take down runners with faulty runner check (#10019) feat(docs): add transaction profiler docs (#9932) chore: hotfix runner wait (#10018) refactor: remove EnqueuedCallSimulator (#10015) refactor: stop calling public kernels (#9971) git subrepo push --branch=master noir-projects/aztec-nr git_subrepo.sh: Fix parent in .gitrepo file. [skip ci] chore: replace relative paths to noir-protocol-circuits git subrepo push --branch=master barretenberg chore: drop info to verbose in sequencer hot loop (#9983) refactor: Trace structure is an object (#10003) refactor: enqueued calls processor -> public tx simulator (#9919) chore: World state tech debt cleanup 1 (#9561) chore(ci): run noir tests in parallel to building e2e tests (#9977) Revert "chore: lower throughput of ebs disks" (#9996) feat: new proving broker implementation (#9400) chore: replace `to_radix` directive with brillig (#9970) chore: disable failing 48validator kind test (#9920) test: prove one epoch in kind (#9886) fix: formatting (#9979) ...
* master: (67 commits) chore: Fix bad merge on AztecLMDBStore initializer feat: add persisted database of proving jobs (#9942) chore: Clean up data configuration (#9973) chore: remove public kernels (#10027) chore: misc cleanup, docs and renaming (#9968) feat: IPA Accumulator in Builder (#9846) chore(docs): Updates to token contract (#9954) test(avm): minor benchmarking (#9869) chore(ci): run `l1-contracts` CI in parallel with `build` step (#10024) chore: build acir test programs in parallel to e2e build step (#9988) chore: pull out `array_set` pass changes (#9993) feat(avm): ephemeral avm tree (#9798) fix: don't take down runners with faulty runner check (#10019) feat(docs): add transaction profiler docs (#9932) chore: hotfix runner wait (#10018) refactor: remove EnqueuedCallSimulator (#10015) refactor: stop calling public kernels (#9971) git subrepo push --branch=master noir-projects/aztec-nr git_subrepo.sh: Fix parent in .gitrepo file. [skip ci] chore: replace relative paths to noir-protocol-circuits ...
No description provided.