diff options
author | Felix Lange <fjl@twurst.com> | 2016-04-15 19:45:15 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2016-04-15 19:45:15 +0800 |
commit | 6197fbf8d70c1aa96c3e87de91ff3f46f454c1ea (patch) | |
tree | 1b3b3677892e2d94400f3604dc6c2dda4c05ccd4 /eth/backend.go | |
parent | 5c17b2f5211ec98a87140c874483681de4e34391 (diff) | |
parent | bf5ae502ef179490a039c9bcd66d32cd5a7ce5e9 (diff) | |
download | dexon-6197fbf8d70c1aa96c3e87de91ff3f46f454c1ea.tar dexon-6197fbf8d70c1aa96c3e87de91ff3f46f454c1ea.tar.gz dexon-6197fbf8d70c1aa96c3e87de91ff3f46f454c1ea.tar.bz2 dexon-6197fbf8d70c1aa96c3e87de91ff3f46f454c1ea.tar.lz dexon-6197fbf8d70c1aa96c3e87de91ff3f46f454c1ea.tar.xz dexon-6197fbf8d70c1aa96c3e87de91ff3f46f454c1ea.tar.zst dexon-6197fbf8d70c1aa96c3e87de91ff3f46f454c1ea.zip |
Merge pull request #2458 from fjl/go-vet
all: fix go vet warnings
Diffstat (limited to 'eth/backend.go')
-rw-r--r-- | eth/backend.go | 4 |
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 { |