From 9252ec564466a0ffed4955c0b4b4c5666cdef534 Mon Sep 17 00:00:00 2001 From: yann300 Date: Wed, 6 Dec 2017 18:06:21 +0100 Subject: [PATCH] fix call to callback --- src/execution-context.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/execution-context.js b/src/execution-context.js index 77c2ea86d0..c157eea1fc 100644 --- a/src/execution-context.js +++ b/src/execution-context.js @@ -117,8 +117,9 @@ function ExecutionContext () { if (block && block.hash !== mainNetGenesisHash) name = 'Custom' callback(err, { id, name }) }) + } else { + callback(err, { id, name }) } - callback(err, { id, name }) }) } }