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

Commit

Permalink
Renamed casper HF to hybridCasper
Browse files Browse the repository at this point in the history
  • Loading branch information
holgerd77 committed May 4, 2018
1 parent cdc043e commit 134710a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ library supported:
- ``spuriousDragon``
- ``byzantium``
- ``constantinople`` (Draft)
- ``casper`` (Draft)
- ``hybridCasper`` (Draft)


For hardfork-specific parameter access with the ``param()`` and ``paramByBlock()`` functions
Expand Down
2 changes: 1 addition & 1 deletion hardforks/casper.json → hardforks/hybridCasper.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "casper",
"name": "hybridCasper",
"comment": "Future hardfork to move to hybrid proof-of-stake",
"eip": {
"url": "https://eips.ethereum.org/EIPS/eip-1011",
Expand Down
2 changes: 1 addition & 1 deletion hardforks/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const hardforkChanges = [
[ 'spuriousDragon', require('./spuriousDragon.json') ],
[ 'byzantium', require('./byzantium.json') ],
[ 'constantinople', require('./constantinople.json') ],
[ 'casper', require('./casper.json') ]
[ 'hybridCasper', require('./hybridCasper.json') ]
]

module.exports = hardforkChanges
4 changes: 2 additions & 2 deletions tests/hardforks.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ tape('[Common]: Hardfork logic', function (t) {
'spuriousDragon',
'byzantium',
'constantinople',
'casper'
'hybridCasper'
]
let c

Expand Down Expand Up @@ -52,7 +52,7 @@ tape('[Common]: Hardfork logic', function (t) {
let c = new Common('ropsten')
st.equal(c.hardforkIsActiveOnChain('byzantium'), true, 'should return true for byzantium on Ropsten')
st.equal(c.hardforkIsActiveOnChain('dao'), false, 'should return false for dao on Ropsten')
st.equal(c.hardforkIsActiveOnChain('casper'), false, 'should return false for casper on Ropsten')
st.equal(c.hardforkIsActiveOnChain('hybridCasper'), false, 'should return false for hybridCasper on Ropsten')
st.equal(c.hardforkIsActiveOnChain('notexistinghardfork'), false, 'should return false for a non-existing HF on Ropsten')

st.end()
Expand Down

0 comments on commit 134710a

Please sign in to comment.