-
Notifications
You must be signed in to change notification settings - Fork 784
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
Conversation
…and documentation
955a30f
to
227fdfe
Compare
Codecov Report
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 |
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.
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 |
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.
A question for context: is the idea to change _common
visibility so it can be available on the tests?
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.
yeah in general I agree with this so we don't have to keep doing (block as any)._common
anymore 😄
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.
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.
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.
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', | ||
) |
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.
👍
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.
Looks good!
@evertonfraga |
@holgerd77 got it! As i suspected. |
This PR updates the default HF to Istanbul in preparation for the v5 release.