Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
duniter
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nodes
typescript
duniter
Commits
e2a0cb12
Commit
e2a0cb12
authored
9 years ago
by
Cédric Moreau
Browse files
Options
Downloads
Patches
Plain Diff
Fix: tests were not passing
parent
a8159335
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/lib/sync.js
+2
-1
2 additions, 1 deletion
app/lib/sync.js
with
2 additions
and
1 deletion
app/lib/sync.js
+
2
−
1
View file @
e2a0cb12
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment