diff --git a/orchestrator/src/chain.js b/orchestrator/src/chain.js index 9af7be3..0a4994c 100644 --- a/orchestrator/src/chain.js +++ b/orchestrator/src/chain.js @@ -131,6 +131,10 @@ class Chain { }); resolve(false); } + // If transaction is not ok resolving promise to false + if (status.isDropped || status.isInvalid || status.isUsurped) { + resolve(false); + } }).catch(err => reject(err)); }); } else { @@ -220,6 +224,10 @@ class Chain { }); resolve(false); } + // If transaction is not ok resolving promise to false + if (status.isDropped || status.isInvalid || status.isUsurped) { + resolve(false); + } }).catch(err => reject(err)); }); } catch (error) {