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

Update HF to Istanbul #906

Merged
merged 1 commit into from
Oct 8, 2020
Merged

Update HF to Istanbul #906

merged 1 commit into from
Oct 8, 2020

Conversation

holgerd77
Copy link
Member

This PR updates the default HF to Istanbul in preparation for the v5 release.

@holgerd77 holgerd77 force-pushed the update-hardfork-to-istanbul branch from 955a30f to 227fdfe Compare October 7, 2020 16:15
@codecov
Copy link

codecov bot commented Oct 7, 2020

Codecov Report

Merging #906 into master will decrease coverage by 2.66%.
The diff coverage is 100.00%.

Impacted file tree graph

Flag Coverage Δ
#account 92.85% <ø> (ø)
#block 76.92% <ø> (+0.03%) ⬆️
#blockchain 80.13% <ø> (-0.32%) ⬇️
#common 93.01% <100.00%> (ø)
#ethash 83.33% <ø> (ø)
#tx ?
#vm ?

Flags with carried forward coverage won't be shown. Click here to find out more.

@@ -34,7 +34,7 @@ export class BlockHeader {
public mixHash!: Buffer
public nonce!: Buffer

readonly _common: Common
public readonly _common: Common
Copy link
Contributor

Choose a reason for hiding this comment

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

Making default public visibility explicit 👍

@@ -14,7 +14,7 @@ export class Block {
public readonly uncleHeaders: BlockHeader[] = []
public readonly txTrie = new Trie()

private readonly _common: Common
public readonly _common: Common
Copy link
Contributor

Choose a reason for hiding this comment

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

A question for context: is the idea to change _common visibility so it can be available on the tests?

Copy link
Contributor

Choose a reason for hiding this comment

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

yeah in general I agree with this so we don't have to keep doing (block as any)._common anymore 😄

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, that is for the tests. Always not sure if this is the best way to tackle, but then do out of lack on alternative ideas on practical paths here.

Copy link
Contributor

@evertonfraga evertonfraga left a comment

Choose a reason for hiding this comment

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

The changes are solid.

Another question for context: @holgerd77 why Istanbul, and not Muir Glacier?

block._common.hardfork(),
'istanbul',
'should initialize with the current default HF',
)
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

Copy link
Contributor

@cgewecke cgewecke left a comment

Choose a reason for hiding this comment

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

Looks good!

@holgerd77
Copy link
Member Author

@evertonfraga muirGlacier is not available on the PoA chains, so this will cause problems if people want to switch e.g. on the VM to a rinkeby setup. Since there is no functionality change along muirGlacier istanbul should be a good common denominator.

@holgerd77 holgerd77 merged commit 8fd931c into master Oct 8, 2020
@holgerd77 holgerd77 deleted the update-hardfork-to-istanbul branch October 8, 2020 07:56
@evertonfraga
Copy link
Contributor

@holgerd77 got it! As i suspected.

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

Successfully merging this pull request may close these issues.

4 participants