Skip to content

Commit 4bed2e1

Browse files
committed
f Only broadcast once an hour
1 parent 15d862d commit 4bed2e1

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/lib.rs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ const LDK_PAYMENT_RETRY_TIMEOUT: Duration = Duration::from_secs(10);
173173
const PEER_RECONNECTION_INTERVAL: Duration = Duration::from_secs(10);
174174

175175
// The time in-between node announcement broadcast attempts.
176-
const NODE_ANN_BCAST_INTERVAL: Duration = Duration::from_secs(60 * 10);
176+
const NODE_ANN_BCAST_INTERVAL: Duration = Duration::from_secs(60 * 60);
177177

178178
// The length in bytes of our wallets' keys seed.
179179
const WALLET_KEYS_SEED_LEN: usize = 64;
@@ -794,15 +794,11 @@ impl Node {
794794
return;
795795
}
796796

797-
if !bcast_cm.list_channels().iter().any(|chan| chan.is_public) {
798-
continue;
799-
}
797+
if !bcast_cm.list_channels().iter().any(|chan| chan.is_public) { continue; }
800798

801799
interval.tick().await;
802800

803-
if !bcast_cm.list_channels().iter().any(|chan| chan.is_public) {
804-
continue;
805-
}
801+
if !bcast_cm.list_channels().iter().any(|chan| chan.is_public) { continue; }
806802

807803
while bcast_pm.get_peer_node_ids().is_empty() {
808804
// Sleep a bit and retry if we don't have any peers yet.

0 commit comments

Comments
 (0)