JSON RPC: Calls made in shutdown loop receive error code -5: LIGHTNINGD_SHUTDOWN

This commit is contained in:
Simon Vrouwe
2021-11-10 11:08:49 +02:00
committed by Rusty Russell
parent 209614677a
commit 0388314ef8
3 changed files with 10 additions and 0 deletions

View File

@@ -28,6 +28,9 @@ static const errcode_t PLUGIN_ERROR = -3;
/* Plugin terminated while handling a request. */
static const errcode_t PLUGIN_TERMINATED = -4;
/* Lightningd is shutting down while handling a request. */
static const errcode_t LIGHTNINGD_SHUTDOWN = -5;
/* Errors from `pay`, `sendpay`, or `waitsendpay` commands */
static const errcode_t PAY_IN_PROGRESS = 200;
static const errcode_t PAY_RHASH_ALREADY_USED = 201;