-
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
[Core Plugin DBFT] include consensus time into block interval #3637
base: master
Are you sure you want to change the base?
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.
Just to know
@@ -95,9 +97,10 @@ private void InitializeConsensus(byte viewNumber) | |||
else | |||
{ | |||
TimeSpan span = neoSystem.Settings.TimePerBlock; | |||
if (block_received_index + 1 == context.Block.Index) | |||
if (block_received_index + 1 == context.Block.Index && onPrepareBlockIndex + 1 == context.Block.Index) |
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 is required? seems a fix for a different thing
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.
From my perspective this change is not essential right at this moment.
I am not against the idea of the change itself, but I am not in favor of merging this without strong tests, as we already did in the past.
This requires a setup with delay and a design of experiments that simulate mainnet.
Otherwise, setup some nodes on cloud and test it.
{ | ||
var diff = TimeProvider.Current.UtcNow - block_received_time; | ||
// Include the consensus time into the consensus intervals. | ||
var diff = TimeProvider.Current.UtcNow - onPrepareReceivedTime; |
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 believe this methodology can trigger strange behaviors in a real scenario, after change views, delays and etc...
My suggestion is that each core dev interested in the PR should setup a node. I am available for that. Just set a date and my node will be ready to join our Core Testnet. |
Tests will be done only after this one is properly reviewed, otherwise if this pr keeps changing, comments and suggestions keeps coming, it's meaningless to carry out any real world tests. |
Description
this pr implements issue #3627 to include consensus time into block interval.
Fixes # (issue)
Type of change
Checklist: