Skip to content

Commit

Permalink
connectd: shrink max filter size.
Browse files Browse the repository at this point in the history
10,000 per peer was too much.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
  • Loading branch information
rustyrussell committed Jun 8, 2022
1 parent 74e372a commit ea98832
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion connectd/gossip_rcvd_filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit ea98832

Please sign in to comment.