Skip to content
This repository was archived by the owner on Feb 3, 2025. It is now read-only.

Commit

Permalink
Add log for current inbound liquidity
Browse files Browse the repository at this point in the history
  • Loading branch information
benthecarman committed Jan 22, 2024
1 parent f7af454 commit 16b0cb4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mutiny-core/src/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -994,6 +994,8 @@ impl<S: MutinyStorage> Node<S> {
.map(|c| c.inbound_capacity_msat)
.sum();

log_debug!(self.logger, "Current inbound liquidity {inbound_capacity_msat}msats, creating invoice for {amount_sat}sats");

let has_inbound_capacity = inbound_capacity_msat > amount_sat * 1_000;

let min_amount_sat = if has_inbound_capacity {
Expand Down

0 comments on commit 16b0cb4

Please sign in to comment.