This repository has been archived by the owner on Apr 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 43
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
Added fork blocks for mainnet and ropsten, based on https://eips.ethereum.org/EIPS/eip-2387. Ready for review. |
holgerd77
changed the title
Adds definition for HF Mountain Glacier
Adds definition for HF Muir Glacier
Dec 5, 2019
holgerd77
suggested changes
Dec 5, 2019
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.
Thanks, some minor change requests.
Sure, and thank you for the input.
…On Thu, Dec 5, 2019 at 6:05 PM Holger Drewes ***@***.***> wrote:
***@***.**** requested changes on this pull request.
Thanks, some minor change requests.
------------------------------
In src/chains/ropsten.json
<#75 (comment)>
:
> @@ -67,6 +67,12 @@
"block": 6485846,
"consensus": "pow",
"finality": null
+ },
+ {
+ "name": "muirGlacier",
+ "block": 7117117,
+ "consensus": "pow",
+ "finality": null
Re-checked the block numbers, ok.
------------------------------
In src/hardforks/muirGlacier.json
<#75 (comment)>
:
> @@ -0,0 +1,14 @@
+{
+ "name": "muirGlacier",
+ "comment": "HF to delay the difficulty bomb",
+ "eip": {
+ "url": "https://eips.ethereum.org/EIPS/eip-2384",
+ "status": "PR"
This has been merged some days ago, can you change the status to "Draft"
(as stated in the EIP meta data
<https://github.com/ethereum/EIPs/pull/2387/files#diff-90c4019b83b11d04f0e66ddc3f5136efR7>
?
------------------------------
In tests/hardforks.ts
<#75 (comment)>
:
> @@ -80,13 +80,17 @@ tape('[Common]: Hardfork logic', function(t: tape.Test) {
msg = 'should return 2 active HFs when restricted to supported HFs'
st.equal(c.activeHardforks(null, { onlySupported: true }).length, 2, msg)
+ c = new Common('mainnet')
+ msg = 'should return 10 active HFs for mainnet'
+ st.equal(c.activeHardforks().length, 10, msg)
+
Could you add one non-PoW chain to the tests here for comparison?
------------------------------
In tests/hardforks.ts
<#75 (comment)>
:
> st.end()
})
t.test('activeHardfork()', function(st: tape.Test) {
let c = new Common('ropsten')
- let msg = 'should return istanbul as latest active HF for Ropsten'
- st.equal(c.activeHardfork(), 'istanbul', msg)
+ let msg = 'should return muirGlacier as latest active HF for Ropsten'
+ st.equal(c.activeHardfork(), 'muirGlacier', msg)
Again, one non-PoW chain test here would also be good.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#75?email_source=notifications&email_token=AAALQBHYDGBUSSWFYZBIOFLQXGCLPA5CNFSM4JQWUKQKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCOFW43I#pullrequestreview-327904877>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAALQBBTULMTIIX747TYEXTQXGCLPANCNFSM4JQWUKQA>
.
|
Hi @evertonfraga, would you find some time in the next 1-2 days to do the updates here? Think it's important that we progress here to be able to get some next HF release out before Christmas. |
Changes performed. |
holgerd77
approved these changes
Dec 9, 2019
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.
Cool, looks good now! 😄
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Block numbers are still temporary.
It is only relevant for pow chains, therefore it is only present in Ropsten and Mainnet. Please let me know if should I include it elsewhere.