Skip to content

Commit c211094

Browse files
committed
Allow two trust lines to be created without reserve check.
1 parent 072b4f3 commit c211094

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ripple_app/tx/TrustSetTransactor.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ TER TrustSetTransactor::doApply ()
116116

117117
const uint32 uOwnerCount = mTxnAccount->getFieldU32 (sfOwnerCount);
118118
// The reserve required to create the line.
119-
const uint64 uReserveCreate = mEngine->getLedger ()->getReserve (uOwnerCount + 1);
119+
const uint64 uReserveCreate = (uOwnerCount < 2) ? 0 : mEngine->getLedger ()->getReserve (uOwnerCount + 1);
120120

121121
STAmount saLimitAllow = saLimitAmount;
122122
saLimitAllow.setIssuer (mTxnAccountID);

0 commit comments

Comments
 (0)