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/database_util.go | |
parent | fdc5a7dc1a1764c63190a649f70296cbdbc0abe1 (diff) | |
download | go-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.go | 2 |
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 |