fix empty block assigning error#713
Conversation
|
I have a question about this fix. I noticed that the way we add the EndBlock step requires having > 0 txs. This is because this step is added here: https://github.com/privacy-scaling-explorations/zkevm-circuits/blob/d16ac9b8bda39c45c82a41d2d59054c85abbc9a1/zkevm-circuits/src/evm_circuit/witness.rs#L1405-L1410 In this case there are no txs, so the witness generation is not adding an EndBlock step. But for an empty block we should still have an EndBlock right? Maybe we can address this in a different PR. |
ed255
left a comment
There was a problem hiding this comment.
I've made a minor comment about a variable naming, but it's just a suggestion! Feel free to ignore it if you think different about it.
LGTM! Thanks for the fix :)
|
Completelly agree with #713 (comment). |
CPerezz
left a comment
There was a problem hiding this comment.
LGTM!
Agree with @ed255 on #713 (comment) and also the comment on the variable name.
|
You'll need to update this @DreamWuGit so that we can merge. |
@ed255 good point , for two issues:
|
6894a7a to
4097a9d
Compare
|
@DreamWuGit Feel free to merge this PR whenever you like! We can fix the issue #721 in a future PR. |
…s for the dummy chunk proofs to avoid dummy chunk proofgen time (#712) * partiall address review comments of #670 * disable disable_proof_agg by default * fix soundness issues with data hash * add fixed cells for chunk_is_valid * fix typo * well... need morning coffee * typo in readme * fix soundness issue in is_smaller_than * [feat] unify u8 u16 lookup table (#694) * add range table * replace Range256Table of rlp_circuit_fsm * replace u16_table of tx_circuit * use TableColumn * add type alias * use type alias * annotate lookup column * opt min_num_rows_block in poseidon_circuit (#700) prune debug prints and lint * speedup ci using verify_at_rows (#703) * speedup ci using verify_at_rows * use verify_at_rows to speedup super circuit ci tests * update super circuit row estimation API (#695) * remove num_of_chunks in aggregation circuit's instance column (#704) Co-authored-by: kunxian xia <xiakunxian130@gmail.com> * fix: lost tx_type when doing type conversion (#710) * fix condition (#708) * gates for zero checks * statement 1 is correct * reenable statements 3,6,7 * reenable statement 4 * everything seems to work again * update aggregation test accordingly * update spec * minor clean up * Fix fmt. * Make `ChunkHash` fields public. * fix decompose function * update figures * clean up * address comments * add is_final checks * update readme * constraint hash input length * fix clippy --------- Co-authored-by: Akase Cho <lightsing@users.noreply.github.com> Co-authored-by: Ho <noel.wei@gmail.com> Co-authored-by: Zhang Zhuo <mycinbrin@gmail.com> Co-authored-by: kunxian xia <xiakunxian130@gmail.com> Co-authored-by: Steven Gu <asongala@163.com>
refer to issue #710