mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-08 00:24:28 +01:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user