mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Remove unnecessary assert.
This commit is contained in:
@@ -861,8 +861,6 @@ uint32 LedgerEntrySet::rippleTransferRate(const uint160& uIssuerID)
|
||||
% !!sleAccount
|
||||
% (uQuality/1000000000.0));
|
||||
|
||||
assert(sleAccount);
|
||||
|
||||
return uQuality;
|
||||
}
|
||||
|
||||
|
||||
@@ -286,7 +286,7 @@ TER RippleCalc::calcNodeDeliverRev(
|
||||
|
||||
STAmount& saPrvDlvReq = pnPrv.saRevDeliver; // To be adjusted.
|
||||
|
||||
saOutAct = 0;
|
||||
saOutAct.zero(saOutReq);
|
||||
|
||||
while (saOutAct != saOutReq) // Did not deliver limit.
|
||||
{
|
||||
@@ -1650,6 +1650,11 @@ PathState::PathState(
|
||||
uInCurrencyID,
|
||||
uSenderID);
|
||||
|
||||
cLog(lsDEBUG) << boost::str(boost::format("PathState: pushed: account=%s currency=%s issuer=%s")
|
||||
% RippleAddress::createHumanAccountID(uSenderID)
|
||||
% STAmount::createHumanCurrency(uInCurrencyID)
|
||||
% RippleAddress::createHumanAccountID(uSenderID));
|
||||
|
||||
if (tesSUCCESS == terStatus
|
||||
&& !!uInCurrencyID // First was not XRC
|
||||
&& uInIssuerID != uSenderID) { // Issuer was not same as sender
|
||||
@@ -1667,11 +1672,19 @@ PathState::PathState(
|
||||
: uOutIssuerID
|
||||
: ACCOUNT_XNS;
|
||||
|
||||
cLog(lsDEBUG) << boost::str(boost::format("PathState: implied check: uNxtCurrencyID=%s uNxtAccountID=%s")
|
||||
% RippleAddress::createHumanAccountID(uNxtCurrencyID)
|
||||
% RippleAddress::createHumanAccountID(uNxtAccountID));
|
||||
|
||||
// Can't just use push implied, because it can't compensate for next account.
|
||||
if (!uNxtCurrencyID // Next is XRC - will have offer next
|
||||
|| uInCurrencyID != uNxtCurrencyID // Next is different current - will have offer next
|
||||
|| uInIssuerID != uNxtAccountID) // Next is not implied issuer
|
||||
{
|
||||
cLog(lsDEBUG) << boost::str(boost::format("PathState: implied: account=%s currency=%s issuer=%s")
|
||||
% RippleAddress::createHumanAccountID(uInIssuerID)
|
||||
% RippleAddress::createHumanAccountID(uInCurrencyID)
|
||||
% RippleAddress::createHumanAccountID(uInIssuerID));
|
||||
// Add implied account.
|
||||
terStatus = pushNode(
|
||||
STPathElement::typeAccount
|
||||
|
||||
Reference in New Issue
Block a user