Commit Graph

6 Commits

Author SHA1 Message Date
Christian Decker
e4f8d2d0b8 probe: Poll for probe completion instead of waiting
This just polls pending probes and calls a callback upon completion.

Signed-off-by: Christian Decker <decker.christian@gmail.com>
2019-09-02 22:58:48 +02:00
Christian Decker
0484d88cda probe: Made probe an async_method so we can run in parallel
Since `probe` may take a while, or hang altogether we better make it async so
we can run multiple ones in parallel. The next step is to have a sweeper
thread that just checks all pending probes.

Signed-off-by: Christian Decker <decker.christian@gmail.com>
2019-09-02 22:58:48 +02:00
Christian Decker
439ff65f14 probe: Allow probing for a specific node
Signed-off-by: Christian Decker <decker.christian@gmail.com>
2019-09-02 22:58:48 +02:00
Christian Decker
54efa366e3 probe: Actually add a sensible return value to the probe method
It was returning `null` and we'd have to check the logs or the DB for the
result. This makes it just a bit easier to see what happens.

Signed-off-by: Christian Decker <decker.christian@gmail.com>
2019-05-09 12:46:30 +02:00
Christian Decker
09faaeb759 probe: Run probes in their own thread
Signed-off-by: Christian Decker <decker.christian@gmail.com>
2019-02-20 20:10:39 +01:00
Christian Decker
4f31f5971a probe: Added a very simple probe plugin
This is a plugin that regularly probes the network by sending a random payment
to a random destination. These do not succeed, since we randomly selected the
`payment_hash`, but can still give us a lot of insight into the network
health.

The plugin stores its results in a `sqlite3` database for later inspection.

Signed-off-by: Christian Decker <decker.christian@gmail.com>
2019-02-11 13:53:03 +01:00