-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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(taiko-client): enable proof aggregation (batch proofs) #18163
base: main
Are you sure you want to change the base?
Conversation
feat(taiko-client): submit batch proofs
🚨 Report Summary
For more details view the full report in OpenZeppelin Code Inspector |
packages/taiko-client/prover/proof_submitter/proof_submitter.go
Outdated
Show resolved
Hide resolved
Co-authored-by: David <[email protected]>
Co-authored-by: David <[email protected]>
Co-authored-by: David <[email protected]>
Co-authored-by: David <[email protected]>
Co-authored-by: David <[email protected]>
Co-authored-by: David <[email protected]>
Co-authored-by: David <[email protected]>
Co-authored-by: David <[email protected]>
…hub.com:taikoxyz/taiko-mono into feature/batch-proof
packages/taiko-client/prover/proof_submitter/proof_submitter.go
Outdated
Show resolved
Hide resolved
packages/taiko-client/prover/proof_submitter/transaction/builder.go
Outdated
Show resolved
Hide resolved
Co-authored-by: David <[email protected]>
Co-authored-by: David <[email protected]>
…er.go Co-authored-by: David <[email protected]>
Co-authored-by: David <[email protected]>
@@ -2,7 +2,7 @@ name: "Build and Push Multi-Arch Docker Image" | |||
|
|||
on: | |||
push: | |||
branches: [main] | |||
branches: [feature/batch-proof] |
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.
Let's change it back?
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 want to build a new image to test in devnet first and then I will change it back.
result = make([]*BlockProofStatus, len(ids)) | ||
) | ||
// Get the local L2 parent header. | ||
g, gCtx := errgroup.WithContext(ctxWithTimeout) |
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.
And after thinking twice, let's do batch requests https://geth.ethereum.org/docs/interacting-with-geth/rpc/batch here and some other places, to make the network requests always O1
.
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, pretty good!
continue | ||
} | ||
g.Go(func() error { | ||
header, err := cli.WaitL2Header(gCtx, ids[i]) |
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.
We can just wait for the highest header here right? no need to send requests to check and wait every block?
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
} | ||
|
||
// Get the corresponding L2 block. | ||
block, err := s.rpc.L2.BlockByHash(ctx, proof.Header.Hash()) |
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.
Lets also use batch requests 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.
ok
packages/taiko-client/prover/proof_submitter/transaction/sender.go
Outdated
Show resolved
Hide resolved
…r.go Co-authored-by: David <[email protected]>
packages/taiko-client/prover/proof_submitter/transaction/sender.go
Outdated
Show resolved
Hide resolved
…r.go Co-authored-by: David <[email protected]>
packages/taiko-client/prover/proof_submitter/transaction/sender.go
Outdated
Show resolved
Hide resolved
…r.go Co-authored-by: Gavin Yu <[email protected]>
packages/taiko-client/prover/proof_submitter/proof_submitter.go
Outdated
Show resolved
Hide resolved
packages/taiko-client/prover/proof_submitter/proof_submitter.go
Outdated
Show resolved
Hide resolved
Co-authored-by: David <[email protected]>
Co-authored-by: David <[email protected]>
This reverts commit ff2228b.
No description provided.