ts in js epoch
This commit is contained in:
parent
b430742aa8
commit
48d5af8072
|
@ -92,7 +92,7 @@ function spec() {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
||||||
self.startTs = parseInt(Date.now()/1000);
|
self.startTs = parseInt(Date.now());
|
||||||
|
|
||||||
// check testnet?
|
// check testnet?
|
||||||
self.rpc.getBlockHash(0, function(err, res){
|
self.rpc.getBlockHash(0, function(err, res){
|
||||||
|
@ -205,7 +205,7 @@ function spec() {
|
||||||
|
|
||||||
if ( self.found && self.syncedBlocks >= self.blockChainHeight ) {
|
if ( self.found && self.syncedBlocks >= self.blockChainHeight ) {
|
||||||
|
|
||||||
self.endTs = parseInt(Date.now()/1000);
|
self.endTs = parseInt(Date.now());
|
||||||
self.status = 'finished';
|
self.status = 'finished';
|
||||||
p('DONE. Height: ' , self.syncedBlocks);
|
p('DONE. Height: ' , self.syncedBlocks);
|
||||||
return cb(err);
|
return cb(err);
|
||||||
|
@ -299,7 +299,7 @@ function spec() {
|
||||||
self.syncedBlocks++;
|
self.syncedBlocks++;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
self.endTs = parseInt(Date.now()/1000);
|
self.endTs = parseInt(Date.now());
|
||||||
self.status = 'finished';
|
self.status = 'finished';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue