-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Broadcast slashing on equivocating blocks #13088
Comments
I would love to take this up if still needed :) |
Hi guys! |
Hi @potuz! I have a question related to this issue. I understand that the slashing logic for an equivocating block is done in the Breaking down what the
At the moment, my PR simply implements the Also, I am not sure that implementing the broadcast in the beacon chain is what you are expecting as I would bypass the Could you give some pointers. Thanks! |
Maybe two different possible roads would be:
Let me know what you think. |
Apologies for being late here. What I want in the issue is to act completely independent of the slasher: when the BN receives a block on gossip and it already has imported a different one for the same slot and proposer, it should immediately construct the slashing message and broadcast |
And yes, I would expect you to bypass the db writing indeed, I'll review this tomorrow morning (without a computer today) |
Oh, I see, you want it completely independent, I used the slasherDB which is wrong, I am going to remove that. My bad! I guess the best course of action here would be to use a cache as proposed here:
I am thinking about retaining the |
I've made a PR for resolving this issue, it's work in progress but wanted to check if the approach looks correct. If yes, I can add unit tests later cc: @potuz |
Prysm has a slasher feature, which is demanding in resources. However, equivocating blocks are already handled in the usual path for every beacon. We should broadcast immediately a slashing object in the event of receiving an equivocating block.
The text was updated successfully, but these errors were encountered: