connectd: shrink max filter size.

10,000 per peer was too much.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2022-06-16 17:02:40 +09:30
parent d922abeaba
commit 0c9017fb76

View File

@@ -120,7 +120,7 @@ void gossip_rcvd_filter_add(struct gossip_rcvd_filter *f, const u8 *msg)
if (extract_msg_key(msg, &key)) {
htable_add(f->cur, key, int2ptr(key));
/* Don't let it fill up forever. */
if (htable_count(f->cur) > 10000)
if (htable_count(f->cur) > 500)
gossip_rcvd_filter_age(f);
}
}