From 5b60c73489e2d8d0689ce8d296d956edfeb3b524 Mon Sep 17 00:00:00 2001 From: Arthur Britto Date: Thu, 13 Dec 2012 17:09:41 -0800 Subject: [PATCH] Look in account for sfOwnerCount. --- src/cpp/ripple/PaymentTransactor.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/cpp/ripple/PaymentTransactor.cpp b/src/cpp/ripple/PaymentTransactor.cpp index 48db9b1e5..6fa282eb7 100644 --- a/src/cpp/ripple/PaymentTransactor.cpp +++ b/src/cpp/ripple/PaymentTransactor.cpp @@ -137,8 +137,7 @@ TER PaymentTransactor::doApply() // Direct XRP payment. const STAmount saSrcXRPBalance = mTxnAccount->getFieldAmount(sfBalance); - const bool bOwnerCount = mTxn.isFieldPresent(sfPaths); - const uint32 uOwnerCount = bOwnerCount ? mTxn.getFieldU32(sfOwnerCount) : 0; + const uint32 uOwnerCount = mTxnAccount->getFieldU32(sfOwnerCount); const uint64 uReserve = theConfig.FEE_ACCOUNT_RESERVE+uOwnerCount*theConfig.FEE_OWNER_RESERVE; // Make sure have enough reserve to send.