mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-19 18:45:52 +00:00
Prefer paths with more liquidity when qualities are equal
This commit is contained in:
@@ -468,7 +468,8 @@ flow (PaymentSandbox const& baseView,
|
||||
|
||||
activeStrands.push (strand);
|
||||
|
||||
if (!best || q > best->quality)
|
||||
if (!best || best->quality < q ||
|
||||
(best->quality == q && best->out < f.out))
|
||||
best.emplace (f.in, f.out, std::move (*f.sandbox), *strand, q);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user