mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Reset mLedger if request is invalid to ensure that findPaths fails.
This commit is contained in:
@@ -153,6 +153,7 @@ Pathfinder::Pathfinder(Ledger::ref ledger,
|
||||
if (((mSrcAccountID == mDstAccountID) && (mSrcCurrencyID == mDstAmount.getCurrency())) || mDstAmount.isZero())
|
||||
{ // no need to send to same account with same currency, must send non-zero
|
||||
bValid = false;
|
||||
mLedger.reset();
|
||||
return;
|
||||
}
|
||||
bValid = true;
|
||||
|
||||
Reference in New Issue
Block a user