-
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
Implementing CN timeout bonifications #704
Conversation
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.
This idea is very good and will probably remove most of the existing change views, in situations where the nodes are clearly evolving.
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.
Added some extra protections, and better parametrization based on M.
This is the most stable version until now on our private network.
Why do we change timer everywhere? |
Change timer were inserted in 4 different places, ensuring that all payload checks were done correctly and no attacks would be possible for increasing a node timer:
It looked like to be the simplest way to implement. It will not affect liveness. |
@erikzhang , we can rename it to IncreaseTimer, perhaps it's a better name. |
Can anyone review this PR? However, I am worried that if we continue to optimize the consensus, dBFT2.0 may never be able to go to the mainnet. |
@erikzhang this is not just optimization... we designed this in order to prevent common change views, that we thought could help avoiding the last stall on test net. My suggestion is to ask NGD for a report over this... if network behaves so much better, we advise putting this on TestNet together with the pending fix. If it's not deemed too great, then it can be kept for later. It looks like an arbitrary change, but we thought about that from a long time, this was the only way to make our priv net work "perfectly". |
These guys have no limits, @erikzhang...aheuaheuaea This is a nice feature/mechanism. The performance improved considerably as @igormcoelho highlighted. |
Excuse me, but will this have negative effect upon onchain TPS (Transactions per second)? Thx! |
No, in general it would probably improve TPS. These extensions only apply when the protocol is making progress, which in the case of a working network should be coming to consensus without needing a view change. |
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.
My suggested changes are just naming and comment text. The code implementation seems reasonable to me.
Travis problems, how to re-run Travis? Sometime ago I saw that button on their system. |
Restarted |
I just noticed I was not logged in there, @shargon. Thanks, |
travis is not working on neo-vm too... |
Thanks everybody. |
Closes #664