@@ -224,7 +224,7 @@ const WALLET_KEYS_SEED_LEN: usize = 64;
224224/// | `onchain_wallet_sync_interval_secs` | 60 |
225225/// | `wallet_sync_interval_secs` | 20 |
226226/// | `fee_rate_cache_update_interval_secs` | 600 |
227- /// | `peers_trusted_0conf ` | [] |
227+ /// | `trusted_peers_0conf ` | [] |
228228/// | `log_level` | `Debug` |
229229///
230230pub struct Config {
@@ -253,7 +253,7 @@ pub struct Config {
253253 /// **Note:** Allowing payments via zero-confirmation channels is potentially insecure if the
254254 /// funding transaction ends up never being confirmed on-chain. Zero-confirmation channels
255255 /// should therefore only be accepted from trusted peers.
256- pub peers_trusted_0conf : Vec < PublicKey > ,
256+ pub trusted_peers_0conf : Vec < PublicKey > ,
257257 /// The level at which we log messages.
258258 ///
259259 /// Any messages below this level will be excluded from the logs.
@@ -270,7 +270,7 @@ impl Default for Config {
270270 onchain_wallet_sync_interval_secs : DEFAULT_BDK_WALLET_SYNC_INTERVAL_SECS ,
271271 wallet_sync_interval_secs : DEFAULT_LDK_WALLET_SYNC_INTERVAL_SECS ,
272272 fee_rate_cache_update_interval_secs : DEFAULT_FEE_RATE_CACHE_UPDATE_INTERVAL_SECS ,
273- peers_trusted_0conf : Vec :: new ( ) ,
273+ trusted_peers_0conf : Vec :: new ( ) ,
274274 log_level : DEFAULT_LOG_LEVEL ,
275275 }
276276 }
@@ -577,7 +577,7 @@ impl Builder {
577577 // Initialize the ChannelManager
578578 let mut user_config = UserConfig :: default ( ) ;
579579 user_config. channel_handshake_limits . force_announced_channel_preference = false ;
580- if !config. peers_trusted_0conf . is_empty ( ) {
580+ if !config. trusted_peers_0conf . is_empty ( ) {
581581 // Manually accept inbound channels if we expect 0conf channel requests, avoid
582582 // generating the events otherwise.
583583 user_config. manually_accept_inbound_channels = true ;
0 commit comments