Skip to content
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

Issue 1004 - prevent "Mining too far in future" message when using allowedfutureblocktime parameter #1023

Merged

Conversation

SatpalSandhu61
Copy link
Contributor

@SatpalSandhu61 SatpalSandhu61 commented Jun 24, 2020

fixes #1004

  • When --allowedfutureblocktime flag is set, then it's value should also be used when creating a block to prevent "Mining too far in the future" message and associated 2 second wait.
    Additionally:
  • Removed unused field ChainConfig.IstanbulConfig.AllowedFutureBlockTime, so that it's not displayed by admin.nodeInfo.protocols.istanbul with zero value

… the future" when nodes are not in time sync.

Also fix issue where zero value of AllowedFutureBlockTime is always shown when using `admin.nodeInfo.protocols.istanbul` in console.
@jpmsam jpmsam requested a review from jbhurat July 2, 2020 12:13
@jpmsam
Copy link
Contributor

jpmsam commented Jul 2, 2020

@jbhurat please review for IBFT implementation.

Copy link
Contributor

@jbhurat jbhurat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jpmsam jpmsam merged commit e9f1eed into Consensys:master Jul 11, 2020
@SatpalSandhu61 SatpalSandhu61 deleted the issue-1004-fix-mining-too-far-in-future branch July 16, 2020 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Command line parameter --allowedfutureblocktime can result in "Mining too far in the future" messages
5 participants