mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
libplugin: don't be so strict on msat fields.
Let the parsing handle if they're the wrong type (soon they'll be u64). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -916,7 +916,7 @@ static struct payment_result *tal_sendpay_result_from_json(const tal_t *ctx,
|
||||
/* Initial sanity checks, all these fields must exist. */
|
||||
if (idtok == NULL || idtok->type != JSMN_PRIMITIVE ||
|
||||
hashtok == NULL || hashtok->type != JSMN_STRING ||
|
||||
senttok == NULL || senttok->type != JSMN_STRING ||
|
||||
senttok == NULL ||
|
||||
statustok == NULL || statustok->type != JSMN_STRING) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user