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

consensus/ethash: fix a typo and error message #20503

Merged
merged 2 commits into from
Jan 7, 2020

Conversation

gballet
Copy link
Member

@gballet gballet commented Jan 3, 2020

No description provided.

@gballet gballet requested a review from karalabe January 3, 2020 16:06
@@ -68,7 +68,7 @@ var (
// codebase, inherently breaking if the engine is swapped out. Please put common
// error types into the consensus package.
var (
errZeroBlockTime = errors.New("timestamp equals parent's")
errOlderBlockTime = errors.New("header timestamp is older or same as parent's")
Copy link
Member

Choose a reason for hiding this comment

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

Perhaps timestamp older than parent. I know it's not as precise, but I kind of prefer shorter errors than long winded wording that doesn't add significantly more information.

Copy link
Contributor

Choose a reason for hiding this comment

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

Updated

@fjl fjl merged commit c49a416 into ethereum:master Jan 7, 2020
@karalabe karalabe added this to the 1.9.10 milestone Jan 9, 2020
enriquefynn pushed a commit to enriquefynn/go-ethereum that referenced this pull request Mar 10, 2021
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.

3 participants