diff --git a/src/ripple/app/paths/impl/StrandFlow.h b/src/ripple/app/paths/impl/StrandFlow.h index 9b98a28b10..464321dc4a 100644 --- a/src/ripple/app/paths/impl/StrandFlow.h +++ b/src/ripple/app/paths/impl/StrandFlow.h @@ -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); }