From 210b2fbcd732e7bda62e6971dc7b10e199694fbd Mon Sep 17 00:00:00 2001 From: Sky Young Date: Thu, 17 May 2018 09:36:43 -0700 Subject: [PATCH] Replace ts with time due to fcoin based on a higher version of lcoin --- lib/services/block/index.js | 2 +- lib/services/header/index.js | 2 +- lib/services/timestamp/index.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/services/block/index.js b/lib/services/block/index.js index b43c0288..35f4b387 100644 --- a/lib/services/block/index.js +++ b/lib/services/block/index.js @@ -162,7 +162,7 @@ BlockService.prototype.getBlockOverview = function(hash, callback) { prevHash: header.prevHash, nextHash: header.nextHash, merkleRoot: header.merkleRoot, - time: block.ts, + time: block.time, medianTime: null, nonce: header.nonce, bits: header.bits, diff --git a/lib/services/header/index.js b/lib/services/header/index.js index 86c44294..a87c86e1 100644 --- a/lib/services/header/index.js +++ b/lib/services/header/index.js @@ -334,7 +334,7 @@ HeaderService.prototype._persistHeader = function(block, callback) { HeaderService.prototype._formatHeader = function(block) { var header = block.toHeaders().toJSON(); - header.timestamp = header.ts; + header.timestamp = header.time; header.prevHash = header.prevBlock; return header; diff --git a/lib/services/timestamp/index.js b/lib/services/timestamp/index.js index 67d8755c..ba73b7d0 100644 --- a/lib/services/timestamp/index.js +++ b/lib/services/timestamp/index.js @@ -91,7 +91,7 @@ TimestampService.prototype.onBlock = function(block, callback) { var operations = []; - var ts = block.ts; + var ts = block.time; var hash = block.rhash(); if (ts <= this._lastBlockTimestamp) {