Skip to content
This repository has been archived by the owner on Apr 11, 2021. It is now read-only.

dev: Revert ethash changes #266

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

smartcontracts
Copy link
Contributor

Description

Reverting some unused changes to ethash.go.

Metadata

Fixes

  • Fixes roadmap#745

Contributing Agreement

@gakonst gakonst requested a review from tynes March 19, 2021 12:42
gakonst
gakonst approved these changes Mar 19, 2021

if uint64(diff) >= limit || header.GasLimit < params.MinGasLimit {
Copy link
Contributor

@gakonst gakonst Mar 19, 2021

Choose a reason for hiding this comment

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

This causes the TestChainTxReorgs because header.GasLimit < params.MinGasLimit (the MinGasLimit = 4m, whereas the gas limit used in the provided header is 3.4m). The blockchain_test.go and ethash/consensus.go are the same as c49a4165d074c2d08c362cfe1dac835b6a3e1251, so I am not sure why this happens.

The TestGenerateBlockAndImportEthash test also fails at the timestamp check in consensus.go:257, because both the header.Time and parent.Time are 0. Similarly, I would have expected that there is some time given until the next block is passed.

Despite the fact that these test cases may not be part of the "normal" codepaths, it seems like we should understand why these fail

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants