Prefer paths with more liquidity when qualities are equal

This commit is contained in:
seelabs
2016-06-02 10:58:50 -04:00
parent bb61ad2afe
commit a87f56448a

View File

@@ -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);
}