We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
saturating_add
1 parent 100df55 commit 442b24cCopy full SHA for 442b24c
src/wallet/mod.rs
@@ -364,7 +364,7 @@ where
364
e
365
})?
366
.to_sat();
367
- if spendable_amount_sats < amount_sats + tx_fee_sats {
+ if spendable_amount_sats < amount_sats.saturating_add(tx_fee_sats) {
368
log_error!(self.logger,
369
"Unable to send payment due to insufficient funds. Available: {}sats, Required: {}sats + {}sats fee",
370
spendable_amount_sats,
0 commit comments