mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Fix incorrect source issuer for XRP source
This commit is contained in:
@@ -438,6 +438,8 @@ TER PathState::expandPath (
|
||||
if ((isXRP (uMaxCurrencyID) && !isXRP (uMaxIssuerID))
|
||||
|| (isXRP (currencyOutID) && !isXRP (issuerOutID)))
|
||||
{
|
||||
WriteLog (lsDEBUG, RippleCalc)
|
||||
<< "expandPath> issuer with XRP";
|
||||
terStatus = temBAD_PATH;
|
||||
}
|
||||
|
||||
|
||||
@@ -176,6 +176,7 @@ Pathfinder::Pathfinder (
|
||||
mLedger (cache->getLedger ()),
|
||||
mRLCache (cache)
|
||||
{
|
||||
assert (isXRP(uSrcCurrency) == isXRP(uSrcIssuer));
|
||||
}
|
||||
|
||||
Pathfinder::Pathfinder (
|
||||
@@ -188,7 +189,11 @@ Pathfinder::Pathfinder (
|
||||
mDstAccount (uDstAccount),
|
||||
mDstAmount (saDstAmount),
|
||||
mSrcCurrency (uSrcCurrency),
|
||||
mSrcAmount ({uSrcCurrency, uSrcAccount}, 1u, 0, true),
|
||||
mSrcAmount (
|
||||
{
|
||||
uSrcCurrency,
|
||||
isXRP (uSrcCurrency) ? xrpAccount () : uSrcAccount
|
||||
}, 1u, 0, true),
|
||||
mLedger (cache->getLedger ()),
|
||||
mRLCache (cache)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user