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

Commit

Permalink
Merge pull request #15 from ethereumjs/minor-additions
Browse files Browse the repository at this point in the history
Minor additions
  • Loading branch information
holgerd77 authored May 28, 2018
2 parents 4620975 + d928c55 commit dbb77da
Show file tree
Hide file tree
Showing 6 changed files with 163 additions and 84 deletions.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,17 @@ Network-specific genesis files are located in the ``genesisStates`` folder.
Due to the large file sizes genesis states are not directly included in the ``index.js`` file
but have to be accessed directly, e.g.:

```
```javascript
const mainnetGenesisState = require('ethereumjs-common/genesisStates/mainnet')
```

Or by choosing dynamically:

```javascript
const genesisStates = require('ethereumjs-common/genesisStates')
const mainnetGenesisState = genesisStates['mainnet']
const mainnetGenesisState = genesisStates[genesisStates['names'][1]] // alternative via chain Id
```

# LICENSE
[MIT](https://opensource.org/licenses/MIT)
Loading

0 comments on commit dbb77da

Please sign in to comment.