From c211094d3e710f4b9d7d85c98b40e58c1204d315 Mon Sep 17 00:00:00 2001 From: David Schwartz Date: Tue, 5 Nov 2013 13:29:07 -0800 Subject: [PATCH] Allow two trust lines to be created without reserve check. --- src/ripple_app/tx/TrustSetTransactor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ripple_app/tx/TrustSetTransactor.cpp b/src/ripple_app/tx/TrustSetTransactor.cpp index b818989c6..1f9ab6126 100644 --- a/src/ripple_app/tx/TrustSetTransactor.cpp +++ b/src/ripple_app/tx/TrustSetTransactor.cpp @@ -116,7 +116,7 @@ TER TrustSetTransactor::doApply () const uint32 uOwnerCount = mTxnAccount->getFieldU32 (sfOwnerCount); // The reserve required to create the line. - const uint64 uReserveCreate = mEngine->getLedger ()->getReserve (uOwnerCount + 1); + const uint64 uReserveCreate = (uOwnerCount < 2) ? 0 : mEngine->getLedger ()->getReserve (uOwnerCount + 1); STAmount saLimitAllow = saLimitAmount; saLimitAllow.setIssuer (mTxnAccountID);