From f04b9131cced129ebae72cdff0510e31c939429d Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Fri, 8 Nov 2013 10:32:15 -0800 Subject: [PATCH] terNO_LINE should never be the final result of a payment transaction that can claim a fee. --- src/ripple_app/tx/PaymentTransactor.cpp | 3 +++ test/send-test.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ripple_app/tx/PaymentTransactor.cpp b/src/ripple_app/tx/PaymentTransactor.cpp index 80e45777f..5ee266eb3 100644 --- a/src/ripple_app/tx/PaymentTransactor.cpp +++ b/src/ripple_app/tx/PaymentTransactor.cpp @@ -204,6 +204,9 @@ TER PaymentTransactor::doApply () bNoRippleDirect, // Always compute for finalizing ledger. false, // Not standalone, delete unfundeds. isSetBit (mParams, tapOPEN_LEDGER)); + + if (terNO_LINE == terResult) + terResult = tecPATH_DRY; } catch (const std::exception& e) { diff --git a/test/send-test.js b/test/send-test.js index 1f6737fba..0ba6d6d7a 100644 --- a/test/send-test.js +++ b/test/send-test.js @@ -702,7 +702,7 @@ suite('Gateway', function() { .once('submitted', function (m) { // console.log("submitted: %s", JSON.stringify(m)); - callback(m.engine_result !== 'terNO_LINE'); + callback(m.engine_result !== 'tecPATH_DRY'); }) .submit(); },