core-lightning/plugins/renepay/renepayconfig.h
Lagrang3 f16363b86d renepay: small tweak to decay time
The time of decay "TIMER_FORGET_SEC" was set to 1 hour,
which is very low, it would make the plugin try depleted channels after
just a couple of seconds for very small amounts.
I set it to 1 week ~ 6e5 seconds.

Signed-off-by: Lagrang3 <lagrang3@protonmail.com>
2024-08-12 13:17:21 -07:00

14 lines
435 B
C

#ifndef LIGHTNING_PLUGINS_RENEPAY_RENEPAYCONFIG_H
#define LIGHTNING_PLUGINS_RENEPAY_RENEPAYCONFIG_H
#include "config.h"
#define MAX_NUM_ATTEMPTS 10
/* Knowledge is proportionally decreased with time up to TIMER_FORGET_SEC when
* we forget everything. */
#define TIMER_FORGET_SEC 600000
/* Time lapse used to wait for failed sendpays. */
#define COLLECTOR_TIME_WINDOW_MSEC 50
#endif /* LIGHTNING_PLUGINS_RENEPAY_RENEPAYCONFIG_H */