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:
Rusty Russell
2022-06-20 19:52:09 +09:30
parent 98c264de66
commit 993f44f289
2 changed files with 3 additions and 3 deletions

View File

@@ -1591,8 +1591,8 @@ static struct listpeers_channel *json_to_listpeers_channel(const tal_t *ctx,
ftxidtok == NULL || ftxidtok->type != JSMN_STRING ||
(scidtok != NULL && scidtok->type != JSMN_STRING) ||
(dirtok != NULL && dirtok->type != JSMN_PRIMITIVE) ||
tmsattok == NULL || tmsattok->type != JSMN_STRING ||
smsattok == NULL || smsattok->type != JSMN_STRING)
tmsattok == NULL ||
smsattok == NULL)
return NULL;
chan = tal(ctx, struct listpeers_channel);