Skip to content

Commit

Permalink
Added dev test runs for Constantinople, activated Constantinople for …
Browse files Browse the repository at this point in the history
…test preparation
  • Loading branch information
holgerd77 committed Jul 23, 2018
1 parent 41b5a0b commit b9a6d1b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
12 changes: 12 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,15 @@ jobs:
- run:
name: testState
command: npm run testState
test_state_dev:
<<: *defaults
steps:
- attach_workspace:
at: ~/project
- *restore_node_modules
- run:
name: testStateDev
command: npm run testStateDev
coveralls:
<<: *defaults
steps:
Expand All @@ -91,6 +100,9 @@ workflows:
- test_state:
requires:
- install
- test_state_dev:
requires:
- install
- coveralls:
requires:
- install
5 changes: 4 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ function VM (opts = {}) {

let chain = opts.chain ? opts.chain : 'mainnet'
let hardfork = opts.hardfork ? opts.hardfork : 'byzantium'
let supportedHardforks = [ 'byzantium' ]
let supportedHardforks = [
'byzantium', // Officially supported
'constantinople' // No official support yet, only for testing reasons
]
this._common = new Common(chain, hardfork, supportedHardforks)

if (opts.stateManager) {
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"coverage": "istanbul cover ./tests/tester.js -- -s",
"coveralls": "npm run coverage && coveralls <coverage/lcov.info",
"testVM": "node ./tests/tester -v",
"testState": "npm run build:dist && node ./tests/tester -s --dist",
"testState": "npm run build:dist && node ./tests/tester -s --fork='Byzantium' --dist",
"testStateDev": "npm run build:dist && node ./tests/tester -s --fork='Constantinople' --dist",
"testBuildIntegrity": "npm run build:dist && node ./tests/tester -s --dist --test='stackOverflow'",
"testBlockchain": "npm run build:dist && node --stack-size=1500 ./tests/tester -b --dist --excludeDir='GeneralStateTests'",
"testBlockchainGeneralStateTests": "npm run build:dist && node --stack-size=1500 ./tests/tester -b --dist --dir='GeneralStateTests'",
Expand Down

0 comments on commit b9a6d1b

Please sign in to comment.