aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-10-07 16:50:37 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-10-07 16:50:37 +0800
commitf8786defd042f173f3e30f79a751a54950602d11 (patch)
tree9f2996986cda0b562023e0e928420c01286daf6a
parent44fd3951410fb5923d7e578ac97942a7ea791e96 (diff)
parent830ddcee60cd3ff37a02d8ff3c1dd57c43708f36 (diff)
downloadgo-tangerine-f8786defd042f173f3e30f79a751a54950602d11.tar
go-tangerine-f8786defd042f173f3e30f79a751a54950602d11.tar.gz
go-tangerine-f8786defd042f173f3e30f79a751a54950602d11.tar.bz2
go-tangerine-f8786defd042f173f3e30f79a751a54950602d11.tar.lz
go-tangerine-f8786defd042f173f3e30f79a751a54950602d11.tar.xz
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.go3
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
}