lndk-org/lndk

Task: Make Rate Limits Configurable

Opened this issue · 3 comments

Description

#47 introduces basic token bucket rate limiting, with two parameters:

  • call_count: the number of calls allowed during one period
  • call_frequency: the period at which each peer's call count is refreshed

People running LNDK may want to toggle these values to allow more/less onion messages.

Steps to Complete

  1. Add rate_limit_count and rate_limit_period to configure_me config

Notes

  • The original default values are arbitrarily chosen (10 messages / second), this task could change them if desired (probably increase, once folks have the knobs to lower them)

i would love to take this on if no one is assigned @carlaKC

i would love to take this on if no one is assigned @carlaKC

Have at it!

I'll take this.
I have been looking into #56, but it seemed this should be finished first.