diff options
author | Felix Lange <fjl@twurst.com> | 2016-04-15 16:57:37 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2016-04-15 16:57:37 +0800 |
commit | 24cdac41f34b37145c89572712db0854dd411110 (patch) | |
tree | 54c96106a142408bbe0408c7905fed25c22f1bff /core/blockchain.go | |
parent | fdc5a7dc1a1764c63190a649f70296cbdbc0abe1 (diff) | |
download | dexon-24cdac41f34b37145c89572712db0854dd411110.tar.gz dexon-24cdac41f34b37145c89572712db0854dd411110.tar.zst dexon-24cdac41f34b37145c89572712db0854dd411110.zip |
core, core/types, eth: add and use Block.Body
This fixes a few uses of unkeyed Body literals which go vet was
complaining about.
Diffstat (limited to 'core/blockchain.go')
-rw-r--r-- | core/blockchain.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/blockchain.go b/core/blockchain.go index 177a3bbce..e740eb861 100644 --- a/core/blockchain.go +++ b/core/blockchain.go @@ -678,7 +678,7 @@ func (self *BlockChain) InsertReceiptChain(blockChain types.Blocks, receiptChain } } // Write all the data out into the database - if err := WriteBody(self.chainDb, block.Hash(), &types.Body{block.Transactions(), block.Uncles()}); err != nil { + if err := WriteBody(self.chainDb, block.Hash(), block.Body()); err != nil { errs[index] = fmt.Errorf("failed to write block body: %v", err) atomic.AddInt32(&failed, 1) glog.Fatal(errs[index]) |