mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Fix sendMax path bug
This commit is contained in:
@@ -176,7 +176,9 @@ toStrand (
|
||||
STPathElement::typeAll, src, curIssue.currency, curIssue.account);
|
||||
|
||||
boost::optional<STPathElement> sendMaxPE;
|
||||
if (sendMaxIssue && sendMaxIssue->account != src)
|
||||
if (sendMaxIssue && sendMaxIssue->account != src &&
|
||||
(path.empty () || !path[0].isAccount () ||
|
||||
path[0].getAccountID () != sendMaxIssue->account))
|
||||
sendMaxPE.emplace (sendMaxIssue->account, boost::none, boost::none);
|
||||
|
||||
STPathElement const lastNode (dst, boost::none, boost::none);
|
||||
|
||||
Reference in New Issue
Block a user