mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Correctly handle one-element paths. Don't call setCanonical, it's broken.
This commit is contained in:
@@ -1330,7 +1330,7 @@ Json::Value RPCHandler::doRipplePathFind(Json::Value jvRequest, int& cost)
|
||||
|
||||
// Reuse the expanded as it would need to be calcuated anyway to produce the canonical.
|
||||
// (At least unless we make a direct canonical.)
|
||||
RippleCalc::setCanonical(spsCanonical, vpsExpanded, false);
|
||||
// RippleCalc::setCanonical(spsCanonical, vpsExpanded, false);
|
||||
|
||||
jvEntry["source_amount"] = saMaxAmountAct.getJson(0);
|
||||
// jvEntry["paths_expanded"] = vpsExpanded.getJson(0);
|
||||
|
||||
Reference in New Issue
Block a user