Skip to content

Commit

Permalink
Increase TestNetVersionNum to 7
Browse files Browse the repository at this point in the history
Signed-off-by: Yilun <[email protected]>
  • Loading branch information
yilunzhang committed Jan 18, 2019
1 parent c5bb9bf commit 03a9f44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/ledger/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion nknd.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import (
)

const (
TestNetVersionNum = 6
TestNetVersionNum = 7
)

var (
Expand Down

0 comments on commit 03a9f44

Please sign in to comment.