diff options
author | Bas van Kervel <basvankervel@gmail.com> | 2017-01-05 18:31:09 +0800 |
---|---|---|
committer | Bas van Kervel <basvankervel@gmail.com> | 2017-01-05 18:31:57 +0800 |
commit | a1798a81881dba681e7cd2881f329fd1c2fc4be7 (patch) | |
tree | 72926965543887babb16ed29aa689cdf6e32741a /core/genesis.go | |
parent | 0fac8cba479a7cd90c17307b8795a0f836877c2e (diff) | |
download | dexon-a1798a81881dba681e7cd2881f329fd1c2fc4be7.tar dexon-a1798a81881dba681e7cd2881f329fd1c2fc4be7.tar.gz dexon-a1798a81881dba681e7cd2881f329fd1c2fc4be7.tar.bz2 dexon-a1798a81881dba681e7cd2881f329fd1c2fc4be7.tar.lz dexon-a1798a81881dba681e7cd2881f329fd1c2fc4be7.tar.xz dexon-a1798a81881dba681e7cd2881f329fd1c2fc4be7.tar.zst dexon-a1798a81881dba681e7cd2881f329fd1c2fc4be7.zip |
core,cmd/utils: bugfix for ropsten dump imports
Diffstat (limited to 'core/genesis.go')
-rw-r--r-- | core/genesis.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/genesis.go b/core/genesis.go index 895b24a82..c0f0c9f24 100644 --- a/core/genesis.go +++ b/core/genesis.go @@ -172,7 +172,7 @@ func WriteDefaultGenesisBlock(chainDb ethdb.Database) (*types.Block, error) { return WriteGenesisBlock(chainDb, strings.NewReader(DefaultGenesisBlock())) } -// WriteTestNetGenesisBlock assembles the Morden test network genesis block and +// WriteTestNetGenesisBlock assembles the test network genesis block and // writes it - along with all associated state - into a chain database. func WriteTestNetGenesisBlock(chainDb ethdb.Database) (*types.Block, error) { return WriteGenesisBlock(chainDb, strings.NewReader(DefaultTestnetGenesisBlock())) @@ -198,6 +198,8 @@ func DefaultGenesisBlock() string { return string(blob) } +// DefaultTestnetGenesisBlock assembles a JSON string representing the default Ethereum +// test network genesis block. func DefaultTestnetGenesisBlock() string { reader := bzip2.NewReader(base64.NewDecoder(base64.StdEncoding, strings.NewReader(defaultTestnetGenesisBlock))) blob, err := ioutil.ReadAll(reader) |