Skip to content
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

Open
wants to merge 118 commits into
base: main
Choose a base branch
from

Conversation

YoGhurt111
Copy link
Contributor

No description provided.

Copy link

openzeppelin-code bot commented Sep 23, 2024

feat(taiko-client): submit batch proofs

Generated at commit: 1b3b961d99f73a7fc2230d01eeac2968c333d2af

🚨 Report Summary

Severity Level Results
Contracts Critical
High
Medium
Low
Note
Total
3
3
0
7
43
56
Dependencies Critical
High
Medium
Low
Note
Total
0
0
0
0
0
0

For more details view the full report in OpenZeppelin Code Inspector

packages/taiko-client/cmd/flags/prover.go Outdated Show resolved Hide resolved
packages/taiko-client/cmd/flags/prover.go Outdated Show resolved Hide resolved
packages/taiko-client/cmd/flags/prover.go Outdated Show resolved Hide resolved
packages/taiko-client/pkg/rpc/utils.go Outdated Show resolved Hide resolved
packages/taiko-client/cmd/flags/prover.go Outdated Show resolved Hide resolved
packages/taiko-client/pkg/rpc/utils.go Outdated Show resolved Hide resolved
packages/taiko-client/pkg/rpc/utils.go Show resolved Hide resolved
packages/taiko-client/pkg/rpc/utils.go Show resolved Hide resolved
packages/taiko-client/prover/prover.go Outdated Show resolved Hide resolved
packages/taiko-client/prover/prover.go Show resolved Hide resolved
@@ -2,7 +2,7 @@ name: "Build and Push Multi-Arch Docker Image"

on:
push:
branches: [main]
branches: [feature/batch-proof]
Copy link
Member

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?

Copy link
Contributor Author

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)
Copy link
Member

@davidtaikocha davidtaikocha Nov 20, 2024

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.

image

Copy link
Contributor Author

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])
Copy link
Member

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?

Copy link
Contributor Author

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())
Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants