json-rpc: Give waitblockheight an error code for timeouts

We need to differentiate timeouts from other results, so make it recognizable.
This commit is contained in:
Christian Decker
2021-01-06 16:22:34 +01:00
parent 8e908ff652
commit 0d1b45dfcc
4 changed files with 7 additions and 4 deletions

View File

@@ -84,4 +84,7 @@ static const errcode_t OFFER_EXPIRED = 1002;
static const errcode_t OFFER_ROUTE_NOT_FOUND = 1003;
static const errcode_t OFFER_BAD_INVREQ_REPLY = 1004;
/* Errors from wait* commands */
static const errcode_t WAIT_TIMEOUT = 2000;
#endif /* LIGHTNING_COMMON_JSONRPC_ERRORS_H */