Skip to content

Commit 4502a12

Browse files
committed
Only expose stale RGS age limit with std
1 parent d36e64a commit 4502a12

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lightning-rapid-gossip-sync/src/processing.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ const MAX_INITIAL_NODE_ID_VECTOR_CAPACITY: u32 = 50_000;
3434

3535
/// We remove disallow gossip data that's more than two weeks old, per BOLT 7's
3636
/// suggestion.
37+
#[cfg(feature = "std")]
3738
const STALE_RGS_UPDATE_AGE_LIMIT_SECS: u64 = 60 * 60 * 24 * 14;
3839

3940
impl<NG: Deref<Target=NetworkGraph<L>>, L: Deref> RapidGossipSync<NG, L> where L::Target: Logger {

0 commit comments

Comments
 (0)