From 134710a1c7c8e7c70ba734edc041b29d2c754f87 Mon Sep 17 00:00:00 2001 From: holgerd77 Date: Fri, 4 May 2018 12:04:30 +0200 Subject: [PATCH] Renamed casper HF to hybridCasper --- README.md | 2 +- hardforks/{casper.json => hybridCasper.json} | 2 +- hardforks/index.js | 2 +- tests/hardforks.js | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) rename hardforks/{casper.json => hybridCasper.json} (94%) diff --git a/README.md b/README.md index 750ba71..4d38909 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/hardforks/casper.json b/hardforks/hybridCasper.json similarity index 94% rename from hardforks/casper.json rename to hardforks/hybridCasper.json index 2bfc7bc..400ba79 100644 --- a/hardforks/casper.json +++ b/hardforks/hybridCasper.json @@ -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", diff --git a/hardforks/index.js b/hardforks/index.js index e8e3839..6d2f85a 100644 --- a/hardforks/index.js +++ b/hardforks/index.js @@ -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 diff --git a/tests/hardforks.js b/tests/hardforks.js index bc3d297..c1a5b13 100644 --- a/tests/hardforks.js +++ b/tests/hardforks.js @@ -11,7 +11,7 @@ tape('[Common]: Hardfork logic', function (t) { 'spuriousDragon', 'byzantium', 'constantinople', - 'casper' + 'hybridCasper' ] let c @@ -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()