diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-10-07 16:50:37 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-10-07 16:50:37 +0800 |
commit | f8786defd042f173f3e30f79a751a54950602d11 (patch) | |
tree | 9f2996986cda0b562023e0e928420c01286daf6a | |
parent | 44fd3951410fb5923d7e578ac97942a7ea791e96 (diff) | |
parent | 830ddcee60cd3ff37a02d8ff3c1dd57c43708f36 (diff) | |
download | go-tangerine-f8786defd042f173f3e30f79a751a54950602d11.tar.gz go-tangerine-f8786defd042f173f3e30f79a751a54950602d11.tar.zst go-tangerine-f8786defd042f173f3e30f79a751a54950602d11.zip |
Merge pull request #1850 from karalabe/genesis-block-receipts
core: fix #1848, block receipts db entry for the genesis too
-rw-r--r-- | core/genesis.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/genesis.go b/core/genesis.go index bf97da2e2..62e039d1a 100644 --- a/core/genesis.go +++ b/core/genesis.go @@ -102,6 +102,9 @@ func WriteGenesisBlock(chainDb ethdb.Database, reader io.Reader) (*types.Block, if err := WriteBlock(chainDb, block); err != nil { return nil, err } + if err := PutBlockReceipts(chainDb, block, nil); err != nil { + return nil, err + } if err := WriteCanonicalHash(chainDb, block.Hash(), block.NumberU64()); err != nil { return nil, err } |