From 3e758e1b86d910873a9c1e85f3f3c5d7d13a14f4 Mon Sep 17 00:00:00 2001 From: Chris Clark Date: Thu, 17 Sep 2015 17:05:42 -0700 Subject: [PATCH] Remove "tel" errors from submit's immediate failure category --- src/api/transaction/submit.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/api/transaction/submit.js b/src/api/transaction/submit.js index d6795f0d..0cc2a158 100644 --- a/src/api/transaction/submit.js +++ b/src/api/transaction/submit.js @@ -7,9 +7,13 @@ const Request = utils.common.core.Request; const convertErrors = utils.common.convertErrors; function isImmediateRejection(engineResult) { - return _.startsWith(engineResult, 'tel') - || _.startsWith(engineResult, 'tem') - || _.startsWith(engineResult, 'tej'); + // note: "tel" errors mean the local server refused to process the + // transaction *at that time*, but it could potentially buffer the + // transaction and then process it at a later time, for example + // if the required fee changes (this does not occur at the time of + // this writing, but it could change in the future) + // all other error classes can potentially result in transcation validation + return _.startsWith(engineResult, 'tem') || _.startsWith(engineResult, 'tej'); } function convertSubmitErrors(callback) {