aboutsummaryrefslogtreecommitdiffstats
path: root/eth
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 /eth
parentfdc5a7dc1a1764c63190a649f70296cbdbc0abe1 (diff)
downloaddexon-24cdac41f34b37145c89572712db0854dd411110.tar
dexon-24cdac41f34b37145c89572712db0854dd411110.tar.gz
dexon-24cdac41f34b37145c89572712db0854dd411110.tar.bz2
dexon-24cdac41f34b37145c89572712db0854dd411110.tar.lz
dexon-24cdac41f34b37145c89572712db0854dd411110.tar.xz
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 'eth')
-rw-r--r--eth/backend.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/eth/backend.go b/eth/backend.go
index ea12e4215..76cf8783b 100644
--- a/eth/backend.go
+++ b/eth/backend.go
@@ -557,7 +557,7 @@ func upgradeChainDatabase(db ethdb.Database) error {
if err := core.WriteTd(db, block.Hash(), block.DeprecatedTd()); err != nil {
return err
}
- if err := core.WriteBody(db, block.Hash(), &types.Body{block.Transactions(), block.Uncles()}); err != nil {
+ if err := core.WriteBody(db, block.Hash(), block.Body()); err != nil {
return err
}
if err := core.WriteHeader(db, block.Header()); err != nil {
@@ -573,7 +573,7 @@ func upgradeChainDatabase(db ethdb.Database) error {
if err := core.WriteTd(db, current.Hash(), current.DeprecatedTd()); err != nil {
return err
}
- if err := core.WriteBody(db, current.Hash(), &types.Body{current.Transactions(), current.Uncles()}); err != nil {
+ if err := core.WriteBody(db, current.Hash(), current.Body()); err != nil {
return err
}
if err := core.WriteHeader(db, current.Header()); err != nil {