From c5109f64fa4c73614f34389f2b31337845dc7a3b Mon Sep 17 00:00:00 2001 From: HAOYUatHZ Date: Fri, 2 Aug 2019 16:51:46 +0800 Subject: [PATCH] fix --- toolbar/precog/database/orm/chain.go | 6 ++++++ toolbar/precog/database/orm/node.go | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/toolbar/precog/database/orm/chain.go b/toolbar/precog/database/orm/chain.go index 3ddfb458..284795f2 100644 --- a/toolbar/precog/database/orm/chain.go +++ b/toolbar/precog/database/orm/chain.go @@ -1,5 +1,11 @@ package orm +import ( + "time" +) + type Chain struct { BestHeight uint64 + CreatedAt time.Time + UpdatedAt time.Time } diff --git a/toolbar/precog/database/orm/node.go b/toolbar/precog/database/orm/node.go index bdd7c1f2..ba44fdc0 100644 --- a/toolbar/precog/database/orm/node.go +++ b/toolbar/precog/database/orm/node.go @@ -1,9 +1,15 @@ package orm +import ( + "time" +) + type Node struct { Alias string `json:"alias"` HostPort string `json:"host_port"` PubKey chainkd.XPub `json:"pubkey"` BestHeight uint64 `json:"best_height"` LantencyMS uint64 `json:"lantency_ms"` // TODO: + CreatedAt time.Time + UpdatedAt time.Time } -- 2.11.0