Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
duniter
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
232
Issues
232
List
Boards
Labels
Milestones
Merge Requests
10
Merge Requests
10
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nodes
typescript
duniter
Commits
81c83cf6
Commit
81c83cf6
authored
Aug 23, 2014
by
Cédric Moreau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: some links were not used for WoT tests, hence kicking wrongly
parent
29824999
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
app/models/link.js
app/models/link.js
+2
-2
app/service/KeychainService.js
app/service/KeychainService.js
+1
-1
No files found.
app/models/link.js
View file @
81c83cf6
...
...
@@ -208,7 +208,7 @@ LinkSchema.statics.isOver3StepsOfAMember = function (key, members, done) {
Link
.
find
({
target
:
fpr
,
obsolete
:
false
},
function
(
err
,
links
)
{
dist1Links
=
[];
links
.
forEach
(
function
(
lnk
){
dist1Links
.
push
(
lnk
.
fingerprint
);
dist1Links
.
push
(
lnk
.
source
);
});
next
(
err
);
});
...
...
@@ -255,7 +255,7 @@ LinkSchema.statics.isOver3StepsOfAMember = function (key, members, done) {
Link
.
find
({
source
:
member
,
obsolete
:
false
},
function
(
err
,
links
)
{
dist2Links
=
[];
links
.
forEach
(
function
(
lnk
){
dist2Links
.
push
(
lnk
.
fingerprin
t
);
dist2Links
.
push
(
lnk
.
targe
t
);
});
next
(
err
);
});
...
...
app/service/KeychainService.js
View file @
81c83cf6
...
...
@@ -631,7 +631,7 @@ function KeyService (conn, conf, PublicKeyService) {
},
function
(
members
,
next
){
// If a member is over 3 steps from the whole WoT, has to be kicked
async
.
forEach
(
members
,
function
(
key
,
callback
){
async
.
forEach
Series
(
members
,
function
(
key
,
callback
){
var
fpr
=
key
.
fingerprint
;
async
.
waterfall
([
function
(
next
){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment