-
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
Allow to blacklist block hashes #3803
Conversation
previously this level of permission belongs to council...... |
If a cn want to recover, policy can't be used |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand that this feature allows to protect the node from an unwanted transactions/blocks/etc, but at the same time it's very easy to "bypass" these constraints by minimal changes in transactions/payloads, e.g. you may change the tx's nonce and it will pass the BlacklistedHashes check. So I doubt that this extension will be useful in practice.
Another pitfall is that every time we configure or update our CNs, this setting must be exactly the same within all CNs configs to avoid differences in behaviour.
I think that banning transactions is not correct. This directly affects the state and once the problem is fixed we either need to re-process them or make "wrong" transaction definition a part of the state (like banning via Policy), but this addition would come after the transaction itself, so it'd mean we need to add these exceptions to every node on the network, a configuration nightmare. Banning block hashes is a bit more acceptable because if we're to have any incorrect block in real life that's exactly what we're gonna do (just because there is nothing else we can do) --- fork it and have an alternative "correct" block with the same height. Then this means the "bad" block never happened and the chain is fully consistent at least. But it's the same configuration problem and so far this never actually happened (testnet block 5557998 is correct). |
@roman-khimov changed to be only for blocks |
We agreed at the meeting that it is not the best solution |
Description
In the event that we have a transaction or block that denies the service, this pull request would allow us to blacklist said hash, and for the consensus to continue working. If it is an attack, it can obviously be repeated and will not work, but in the case of something fortuitous, it will allow us to work on the problem without keeping the service denied for a long time.
Type of change
How Has This Been Tested?
Test Configuration:
Checklist: