We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ee8b52 commit 4eca46dCopy full SHA for 4eca46d
lexe-ln/src/command.rs
@@ -1603,10 +1603,6 @@ mod validate {
1603
));
1604
}
1605
1606
- if amount <= max_sendable {
1607
- return Ok(());
1608
- }
1609
-
1610
// If they have a balance but not enough to exceed the channel reserve,
1611
// return a dedicated error message, instead of "cannot find route".
1612
if usable_lightning_balance > Amount::ZERO
@@ -1620,6 +1616,10 @@ mod validate {
1620
1616
1621
1617
1622
1618
1619
+ if amount <= max_sendable {
+ return Ok(());
+ }
+
1623
// Since we know the recipient, we can compute a more accurate maximum
1624
// sendable amount to this recipient (i.e. max flow) and expose that to
1625
// the user as a suggestion.
0 commit comments