Skip to content
Snippets Groups Projects
Commit 72edae07 authored by Cédric Moreau's avatar Cédric Moreau
Browse files

Fix: `sync` command was broken

parent c1f8f14e
Branches
Tags
No related merge requests found
......@@ -169,7 +169,6 @@ function DuniterCommand(programArgs) {
logger.error(err.stack || err.message);
}
yield ((server && server.disconnect()) || Q()).catch(() => null);
throw Error("Exiting");
});
})));
......
......@@ -472,7 +472,7 @@ function BlockchainContext() {
const msType = type == 'leave' ? 'out' : 'in';
const field = types[type];
const mss = block[field];
for (const msRaw of mss.length) {
for (const msRaw of mss) {
const ms = Membership.statics.fromInline(msRaw, type == 'leave' ? 'OUT' : 'IN', block.currency);
ms.membership = msType.toUpperCase();
ms.written = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment