Skip to content

Commit

Permalink
Remove "tel" errors from submit's immediate failure category
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Clark committed Sep 18, 2015
1 parent fb0b30a commit 3e758e1
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/api/transaction/submit.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 3e758e1

Please sign in to comment.