aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2015-09-25 00:36:23 +0800
committerPéter Szilágyi <peterke@gmail.com>2015-09-25 00:38:59 +0800
commit830ddcee60cd3ff37a02d8ff3c1dd57c43708f36 (patch)
tree5e7deb3da17cd70ff27bc59074093d403ae2151e /core
parent69d86442a52fef131827771ee5fb0f2c0c24c97c (diff)
downloaddexon-830ddcee60cd3ff37a02d8ff3c1dd57c43708f36.tar.gz
dexon-830ddcee60cd3ff37a02d8ff3c1dd57c43708f36.tar.zst
dexon-830ddcee60cd3ff37a02d8ff3c1dd57c43708f36.zip
core: fix #1848, block receipts db entry for the genesis too
Diffstat (limited to 'core')
-rw-r--r--core/genesis.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/genesis.go b/core/genesis.go
index b2346da65..11dbdee6d 100644
--- a/core/genesis.go
+++ b/core/genesis.go
@@ -100,6 +100,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
}