aboutsummaryrefslogtreecommitdiffstats
path: root/core/blockchain.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2016-04-15 16:57:37 +0800
committerFelix Lange <fjl@twurst.com>2016-04-15 16:57:37 +0800
commit24cdac41f34b37145c89572712db0854dd411110 (patch)
tree54c96106a142408bbe0408c7905fed25c22f1bff /core/blockchain.go
parentfdc5a7dc1a1764c63190a649f70296cbdbc0abe1 (diff)
downloadgo-tangerine-24cdac41f34b37145c89572712db0854dd411110.tar
go-tangerine-24cdac41f34b37145c89572712db0854dd411110.tar.gz
go-tangerine-24cdac41f34b37145c89572712db0854dd411110.tar.bz2
go-tangerine-24cdac41f34b37145c89572712db0854dd411110.tar.lz
go-tangerine-24cdac41f34b37145c89572712db0854dd411110.tar.xz
go-tangerine-24cdac41f34b37145c89572712db0854dd411110.tar.zst
go-tangerine-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.go2
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])