Giter VIP home page Giter VIP logo

Comments (9)

hero78119 avatar hero78119 commented on August 14, 2024

Hi @davidnevadoc do you think is it related to the recent change #1445 ?

from zkevm-circuits.

hero78119 avatar hero78119 commented on August 14, 2024

also + @ed255 maybe have any quick answer :)

from zkevm-circuits.

ed255 avatar ed255 commented on August 14, 2024

Hi @davidnevadoc do you think is it related to the recent change #1445 ?

Yes, I think this comes directly related to this discussion #1445 (comment)

My guess is that there's a check that is too "overprotective" and logs an error even though the parameters are safe. The other option is that we're skipping enabling some necessary rows (and thus skipping their constraints), which could mean a soundness issue. So I believe this needs some investigation. I would also suggest to avoid logging errors without panicking in such situations; if the circuit parameters not enough to hold the full witness, we should panic.

from zkevm-circuits.

davidnevadoc avatar davidnevadoc commented on August 14, 2024

Yes, this was introduced in #1445 .
I was a bit on the fence about this issue because I too got this error. However, I think it is due to what @ed255 mentioned: An overprotective check.
By having max_rws +3 here


the error will go away. But I could not logically explain such a magic number so I left the +1 which is what I think makes sense according to the specs.

from zkevm-circuits.

hero78119 avatar hero78119 commented on August 14, 2024

Yes, this was introduced in #1445 . I was a bit on the fence about this issue because I too got this error. However, I think it is due to what @ed255 mentioned: An overprotective check. By having max_rws +3 here

the error will go away. But I could not logically explain such a magic number so I left the +1 which is what I think makes sense according to the specs.

Thanks for the hint. After I applied the max_rws +3 commit 360ad81 on word-lo-hi the error indeed gone.

However agree that we should investigate what's the root cause for why magic number + 2

from zkevm-circuits.

hero78119 avatar hero78119 commented on August 14, 2024

Yes, this was introduced in #1445 . I was a bit on the fence about this issue because I too got this error. However, I think it is due to what @ed255 mentioned: An overprotective check. By having max_rws +3 here

the error will go away. But I could not logically explain such a magic number so I left the +1 which is what I think makes sense according to the specs.

Hi @davidnevadoc , after L377, there is send_end_block which still push 2 RW op plus context lookup, so if wanna double confirm if we set max_rws = max_rws + 1 but not counting rw op happened in set_end_block is it still correct?

from zkevm-circuits.

hero78119 avatar hero78119 commented on August 14, 2024

Tried to fixed in PR #1515

from zkevm-circuits.

davidnevadoc avatar davidnevadoc commented on August 14, 2024

there is send_end_block which still push 2 RW op plus context lookup

Oh there it is!! You are right, I missed those and that is why I left the +1. Now that we know where the other 2 come from I'm comfortable having the +3 👍

from zkevm-circuits.

hero78119 avatar hero78119 commented on August 14, 2024

there is send_end_block which still push 2 RW op plus context lookup

Oh there it is!! You are right, I missed those and that is why I left the +1. Now that we know where the other 2 come from I'm comfortable having the +3 👍

Actually +1 + 1 (overall +2) work in this case, 😄 the pr should fixed it generally 👆

from zkevm-circuits.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.