Skip to content
This repository has been archived by the owner on May 11, 2024. It is now read-only.

feat(prover): cancel proof if it becomes verified #207

Merged
merged 45 commits into from
May 5, 2023
Merged

Conversation

cyberhorsey
Copy link
Contributor

@cyberhorsey cyberhorsey commented May 3, 2023

also has a check to not submit a proof when its already verified, should solve both issues.
closes #202

@davidtaikocha im unsure if our client is capable of "proving" more than one block at a time, hence why I made a map. If it isn't, I can remove and just use the variable you have in place for last seen block id, or set s current proving block id.

Corresponding taiko-mono pr: taikoxyz/taiko-mono#13704

@codecov
Copy link

codecov bot commented May 3, 2023

Codecov Report

Merging #207 (33ea859) into main (b5dc5c5) will decrease coverage by 1.11%.
The diff coverage is 31.95%.

@@            Coverage Diff             @@
##             main     #207      +/-   ##
==========================================
- Coverage   53.86%   52.76%   -1.11%     
==========================================
  Files          36       36              
  Lines        3193     3288      +95     
==========================================
+ Hits         1720     1735      +15     
- Misses       1248     1325      +77     
- Partials      225      228       +3     
Impacted Files Coverage Δ
prover/proof_producer/dummy_producer.go 93.75% <0.00%> (-6.25%) ⬇️
prover/proof_producer/oracle_proof_producer.go 9.87% <0.00%> (-0.80%) ⬇️
prover/proof_producer/proof_producer.go 0.00% <ø> (ø)
prover/proof_producer/zkevm_cmd_producer.go 23.71% <0.00%> (-0.76%) ⬇️
prover/proof_producer/zkevm_rpcd_producer.go 29.72% <0.00%> (-0.83%) ⬇️
prover/proof_submitter/valid_proof_submitter.go 64.51% <0.00%> (-0.85%) ⬇️
prover/prover.go 48.67% <31.88%> (-9.79%) ⬇️
prover/config.go 68.18% <75.00%> (+1.51%) ⬆️

... and 1 file with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

prover/prover.go Outdated Show resolved Hide resolved
@davidtaikocha davidtaikocha merged commit 74d1729 into main May 5, 2023
@davidtaikocha davidtaikocha deleted the abandon_proof branch May 5, 2023 06:41
vhjiang pushed a commit to taikoverse/taiko-degen-client that referenced this pull request Jul 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ignore the proof generation when the corresponding block is verified
3 participants