Skip to content
This repository has been archived by the owner on Sep 5, 2020. It is now read-only.

Commit

Permalink
fixes the immediate startup issue (#1540)
Browse files Browse the repository at this point in the history
  • Loading branch information
frozeman authored and alexvansande committed Dec 20, 2016
1 parent 075831c commit 0a0ceed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ onReady = () => {
splashWindow.show();
}

if (Settings.inAutoTestMode) {
if (!Settings.inAutoTestMode) {
return syncResultPromise;
}

Expand Down
2 changes: 1 addition & 1 deletion modules/nodeSync.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ class NodeSync extends EventEmitter {

const diff = now - +blockResult.timestamp;

log.debug(`Last block: ${blockResult.number}, ${diff}s ago`);
log.debug(`Last block: ${Number(blockResult.number)}, ${diff}s ago`);

// need sync if > 1 minute
if (diff > 60) {
Expand Down

0 comments on commit 0a0ceed

Please sign in to comment.