Skip to content
Snippets Groups Projects
Commit e2a0cb12 authored by Cédric Moreau's avatar Cédric Moreau
Browse files

Fix: tests were not passing

parent a8159335
No related branches found
No related tags found
No related merge requests found
......@@ -44,6 +44,7 @@ module.exports = function Synchroniser (server, host, port, conf, interactive) {
};
this.sync = (to, askedCautious, nopeers) => {
let logInterval;
logger.info('Connecting remote host...');
return co(function *() {
var node = yield getVucoin(host, port, vucoinOptions);
......@@ -64,7 +65,7 @@ module.exports = function Synchroniser (server, host, port, conf, interactive) {
var cautious = (askedCautious === true || (askedCautious === undefined && localNumber >= 0));
// Recurrent checking
setInterval(() => {
logInterval = setInterval(() => {
if (remoteNumber > 1 && speed > 0) {
var remain = (remoteNumber - (localNumber + 1 + blocksApplied));
var secondsLeft = remain / speed;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment