mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Correctly handle one-element paths. Don't call setCanonical, it's broken.
This commit is contained in:
@@ -72,7 +72,7 @@ static bool bQualityCmp(const path_LQ_t& a, const path_LQ_t&b)
|
||||
// A path is a default path if it is implied via src, dst, send, and sendmax.
|
||||
bool Pathfinder::bDefaultPath(const STPath& spPath)
|
||||
{
|
||||
if (2 == spPath.mPath.size()) {
|
||||
if (2 >= spPath.mPath.size()) {
|
||||
// Empty path is a default. Don't need to add it to return set.
|
||||
cLog(lsTRACE) << "findPaths: empty path: direct";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user