Commit 03735923 authored by Cédric Moreau's avatar Cédric Moreau
Browse files

[fix] #860 Crash during block testing

parent e436d233
...@@ -1586,6 +1586,7 @@ function checkPeopleAreNotOudistanced (pubkeys, newLinks, newcomers, conf, dal) ...@@ -1586,6 +1586,7 @@ function checkPeopleAreNotOudistanced (pubkeys, newLinks, newcomers, conf, dal)
tempLinks.push({ from: fromNode, to: toNode }); tempLinks.push({ from: fromNode, to: toNode });
} }
} }
wotb.setMaxCert(conf.sigStock + tempLinks.length);
tempLinks.forEach((link) => wotb.addLink(link.from, link.to)); tempLinks.forEach((link) => wotb.addLink(link.from, link.to));
// Checking distance of each member against them // Checking distance of each member against them
let error; let error;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment