From bf6bec73a856c1912638bb270baba6c71f9c5875 Mon Sep 17 00:00:00 2001 From: benthecarman Date: Thu, 9 Nov 2023 14:32:58 -0600 Subject: [PATCH] Use max supply of bitcoin instead of u64::MAX --- mutiny-core/src/node.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mutiny-core/src/node.rs b/mutiny-core/src/node.rs index 93f7a8dff..9aee94ab2 100644 --- a/mutiny-core/src/node.rs +++ b/mutiny-core/src/node.rs @@ -1964,8 +1964,11 @@ pub(crate) fn default_user_config() -> UserConfig { }, manually_accept_inbound_channels: true, channel_config: ChannelConfig { + // Set to max supply of bitcoin. // Don't care about dust exposure, we just want to be able to make payments. - max_dust_htlc_exposure: MaxDustHTLCExposure::FixedLimitMsat(u64::MAX), + max_dust_htlc_exposure: MaxDustHTLCExposure::FixedLimitMsat( + 21_000_000 * 100_000_000 * 1_000, + ), ..Default::default() }, ..Default::default()