diff options
author | Martin Holst Swende <martin@swende.se> | 2019-04-03 04:28:48 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2019-04-08 17:00:42 +0800 |
commit | af401d03a395c21fdb297edb687edf8af3470cb2 (patch) | |
tree | d2ee3476c9005ffe1aca7abbe7152765da0efe32 /light/lightchain.go | |
parent | 80a2a35bc3aaf208b5f91a1fb1d803975d4bb01c (diff) | |
download | go-tangerine-af401d03a395c21fdb297edb687edf8af3470cb2.tar go-tangerine-af401d03a395c21fdb297edb687edf8af3470cb2.tar.gz go-tangerine-af401d03a395c21fdb297edb687edf8af3470cb2.tar.bz2 go-tangerine-af401d03a395c21fdb297edb687edf8af3470cb2.tar.lz go-tangerine-af401d03a395c21fdb297edb687edf8af3470cb2.tar.xz go-tangerine-af401d03a395c21fdb297edb687edf8af3470cb2.tar.zst go-tangerine-af401d03a395c21fdb297edb687edf8af3470cb2.zip |
all: simplify timestamps to uint64 (#19372)
* all: simplify timestamps to uint64
* tests: update definitions
* clef, faucet, mobile: leftover uint64 fixups
* ethash: fix tests
* graphql: update schema for timestamp
* ethash: remove unused variable
Diffstat (limited to 'light/lightchain.go')
-rw-r--r-- | light/lightchain.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/light/lightchain.go b/light/lightchain.go index 8e2734c2d..977f497a7 100644 --- a/light/lightchain.go +++ b/light/lightchain.go @@ -157,7 +157,7 @@ func (self *LightChain) loadLastState() error { // Issue a status log and return header := self.hc.CurrentHeader() headerTd := self.GetTd(header.Hash(), header.Number.Uint64()) - log.Info("Loaded most recent local header", "number", header.Number, "hash", header.Hash(), "td", headerTd, "age", common.PrettyAge(time.Unix(header.Time.Int64(), 0))) + log.Info("Loaded most recent local header", "number", header.Number, "hash", header.Hash(), "td", headerTd, "age", common.PrettyAge(time.Unix(int64(header.Time), 0))) return nil } @@ -488,7 +488,7 @@ func (self *LightChain) SyncCht(ctx context.Context) bool { // Ensure the chain didn't move past the latest block while retrieving it if self.hc.CurrentHeader().Number.Uint64() < header.Number.Uint64() { - log.Info("Updated latest header based on CHT", "number", header.Number, "hash", header.Hash(), "age", common.PrettyAge(time.Unix(header.Time.Int64(), 0))) + log.Info("Updated latest header based on CHT", "number", header.Number, "hash", header.Hash(), "age", common.PrettyAge(time.Unix(int64(header.Time), 0))) self.hc.SetCurrentHeader(header) } return true |