From 20a4d2ca0e9021d6a2026d66b169b923ef338567 Mon Sep 17 00:00:00 2001 From: cgeek <cem.moreau@gmail.com> Date: Thu, 9 Oct 2014 02:07:33 +0200 Subject: [PATCH] Fix: updates were always empty --- app/service/BlockchainService.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/service/BlockchainService.js b/app/service/BlockchainService.js index f9c1e95dc..ab3917150 100644 --- a/app/service/BlockchainService.js +++ b/app/service/BlockchainService.js @@ -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); }, -- GitLab