Skip to content

Commit ea98832

Browse files
committed
connectd: shrink max filter size.
10,000 per peer was too much. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
1 parent 74e372a commit ea98832

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

connectd/gossip_rcvd_filter.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ void gossip_rcvd_filter_add(struct gossip_rcvd_filter *f, const u8 *msg)
120120
if (extract_msg_key(msg, &key)) {
121121
htable_add(f->cur, key, int2ptr(key));
122122
/* Don't let it fill up forever. */
123-
if (htable_count(f->cur) > 10000)
123+
if (htable_count(f->cur) > 500)
124124
gossip_rcvd_filter_age(f);
125125
}
126126
}

0 commit comments

Comments
 (0)