Commit 20a4d2ca authored by Cédric Moreau's avatar Cédric Moreau

Fix: updates were always empty

parent 5f5eb2be
......@@ -514,15 +514,13 @@ function BlockchainService (conn, conf, IdentityService, PeeringService) {
});
},
function (current, updates, next){
createNewcomerBlock(current, null, {}, updates, next);
createNewcomerBlock(current, {}, updates, next);
},
], done);
}
function findUpdates (done) {
var updates = {};
done(null, [], []);
// TODO: certifications
async.waterfall([
function (next){
Certification.findNew(next);
......@@ -647,7 +645,7 @@ function BlockchainService (conn, conf, IdentityService, PeeringService) {
// First, check for members' key updates
findUpdateFunc(next);
},
function (theUpdates, theSubupdates, next) {
function (theUpdates, next) {
updates = theUpdates;
findNewcomers(filteringFunc, checkingWoTFunc, next);
},
......
Markdown is supported
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