-
Notifications
You must be signed in to change notification settings - Fork 332
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
chore: prover node has no claims or bonds #11811
chore: prover node has no claims or bonds #11811
Conversation
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
ac25317
to
ebf51a8
Compare
b41185c
to
5fbcb67
Compare
2b203e0
to
eb4ba26
Compare
5fbcb67
to
a2bd753
Compare
213be4f
to
e2f51cf
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.
Looks good, think there might be a one-off in the tests which seems to match what I see in the runs.
@@ -306,7 +305,7 @@ describe('PXESchema', () => { | |||
}); | |||
|
|||
it('getPrivateEvents', async () => { | |||
const result = await context.client.getPrivateEvents<EpochProofQuote>( | |||
const result = await context.client.getPrivateEvents<{ value: 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.
Not clear to me why this was in here to begin with? Why would the PXE ask for stuff here 🤷
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.
Yeah no idea.
@@ -577,7 +577,7 @@ describe('e2e_block_building', () => { | |||
// Now move to a new epoch and past the proof claim window to cause a reorg | |||
logger.info('Advancing past the proof claim window'); | |||
await cheatCodes.rollup.advanceToNextEpoch(); | |||
await cheatCodes.rollup.advanceSlots(aztecEpochProofClaimWindowInL2Slots + 1); // off-by-one? | |||
await cheatCodes.rollup.advanceSlots(aztecProofSubmissionWindow + 1); // off-by-one? |
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 we update the comment here
|
||
// And wait for the first pair of txs to be proven | ||
logger.info(`Awaiting proof for the previous epoch`); | ||
await Promise.all(txs.map(tx => tx.wait({ timeout: 300, interval: 10, proven: true, provenTimeout: 3000 }))); | ||
|
||
const provenBn = await rollup.read.getProvenBlockNumber(); | ||
const balanceAfterCoinbase = await feeJuice.read.balanceOf([COINBASE_ADDRESS.toString()]); | ||
const balanceAfterProver = await feeJuice.read.balanceOf([t.proverAddress.toString()]); | ||
expect(provenBn + 1n).toBe(await rollup.read.getPendingBlockNumber()); |
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 would we have a +1 in there? If we have just waited until all have been proven, the pending block number should be the same as the proven?
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.
Think it is a leftover or something that relied on the quotes only being passed along with a proposal, so an extra block was added.
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 is still a ci job for running this test 👀 we should also get rid of that one.
const partialQuote = await this.quoteProvider.getQuote(Number(epochNumber), blocks); | ||
if (!partialQuote) { | ||
this.log.info(`No quote produced for epoch ${epochNumber}`); | ||
this.log.debug('jobs', JSON.stringify(this.jobs, null, 2)); |
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 we keep this one?
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 it's okay- it's at debug level, only once per epoch, and is pretty informative.
e2f51cf
to
7e17c08
Compare
eb4ba26
to
1b40fb6
Compare
1b40fb6
to
6eb2612
Compare
a25050d
to
33fd80c
Compare
Please read [contributing guidelines](CONTRIBUTING.md) and remove this line. --------- Co-authored-by: LHerskind <[email protected]>
Please read contributing guidelines and remove this line.