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) {