-
Notifications
You must be signed in to change notification settings - Fork 126
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
could not verify slot claim VRF proof #2682
Comments
Could you run the same setup with babe logs as |
Look into the logs I have shared. All gossamer logs are at trace level already. Also, logs don't suggest anything about wrong slot. I will continue more investigation some day when/if i assign this to myself. |
Putting interesting logs
Sometime later in other gossamer node
|
|
But if we already had created a block
May the fork choice rule not work correctly? |
Oh, yeah
Might be the case |
just went through the way we select best block header. did not really see any problem with that code. But I can think of a scenario where this case happen even if BestBlockHeader works properly. Say, you are alice and you have n blocks and nth block is authored by bob as a secondary author. Currently this nth block is the best block. We handle the next slot and author (n+1)th block as a secondary author. During this time, you find that some other peer has authored nth block as a primary author. Now best block would the new nth block, because that chain would have more primary blocks. And now if we handleslot, we would be authoring another (n+1)th block. Does that make sense? |
I have asked for spec clarification, but we could add one more condition |
The process you described is not wrong, the blocks created by Alice are in different chains so it is possible for a BABE author to create blocks with the same number since those blocks are created in different chains. The main point is: the slot for every block should increase, so as the block |
…more than once (#2709) The earlier block equivocation check logic was wrong. Equivocation for block producers is defined as claiming the same slot more than once. Earlier we were checking for different conditions. This commit re-writes block equivocation logic to throw ErrProducerEquivocated, only when we see an author produce multiple blocks in the same slot. Fixes #2682
Describe the bug
Log output
https://gist.github.com/kishansagathiya/b951113719a5bc62748e7e622b5342e5
The text was updated successfully, but these errors were encountered: