mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 14:42:40 +01:00
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>
14 lines
435 B
C
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 */
|