Replace ts with time due to fcoin based on a higher version of lcoin

This commit is contained in:
Sky Young 2018-05-17 09:36:43 -07:00
parent 799675b234
commit 210b2fbcd7
3 changed files with 3 additions and 3 deletions

View File

@ -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,

View File

@ -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;

View File

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