From 03a9f44d9d3c7ef5fe32003c0f3343f3cfcbeea2 Mon Sep 17 00:00:00 2001 From: Yilun Date: Fri, 18 Jan 2019 04:39:25 -0800 Subject: [PATCH] Increase TestNetVersionNum to 7 Signed-off-by: Yilun --- core/ledger/validator.go | 2 +- nknd.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/ledger/validator.go b/core/ledger/validator.go index 0820f0da4..5910563ff 100644 --- a/core/ledger/validator.go +++ b/core/ledger/validator.go @@ -249,7 +249,7 @@ func TimestampCheck(timestamp int64) error { latest := now.Add(TimestampTolerance) if t.Before(earliest) || t.After(latest) { - return fmt.Errorf("timestamp %v exceed my tolerance [%v, %v]", t, earliest, latest) + return fmt.Errorf("timestamp %d exceed my tolerance [%d, %d]", timestamp, earliest.Unix(), latest.Unix()) } return nil diff --git a/nknd.go b/nknd.go index df54bef7b..027786e47 100644 --- a/nknd.go +++ b/nknd.go @@ -37,7 +37,7 @@ import ( ) const ( - TestNetVersionNum = 6 + TestNetVersionNum = 7 ) var (