bolt12: upgrade to handle latest test vectors.

The latest ones use lno, not lni (this unit tests loads from
../lightning-rfc, silently exiting if it doesn't have the test
vector).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2021-10-08 09:24:37 +10:30 committed by Christian Decker
parent 947cc4730c
commit 51ed7557a1

View file

@ -208,7 +208,7 @@ int main(int argc, char *argv[])
strtok->end - strtok->start);
str = json_escape_unescape(tmpctx, esc);
actual = (string_to_data(tmpctx, str, strlen(str),
"lni", &dlen, &fail) != NULL);
"lno", &dlen, &fail) != NULL);
assert(actual == valid);
}
tal_free(tmpctx);