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