aboutsummaryrefslogtreecommitdiffstats
path: root/core/database_util.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/database_util.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/database_util.go')
-rw-r--r--core/database_util.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/database_util.go b/core/database_util.go
index e1e8136d1..3ba80062c 100644
--- a/core/database_util.go
+++ b/core/database_util.go
@@ -318,7 +318,7 @@ func WriteTd(db ethdb.Database, hash common.Hash, td *big.Int) error {
// WriteBlock serializes a block into the database, header and body separately.
func WriteBlock(db ethdb.Database, block *types.Block) error {
// Store the body first to retain database consistency
- if err := WriteBody(db, block.Hash(), &types.Body{block.Transactions(), block.Uncles()}); err != nil {
+ if err := WriteBody(db, block.Hash(), block.Body()); err != nil {
return err
}
// Store the header too, signaling full block ownership