mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 07:34:24 +01:00
json: Add method to parse a u64 array
This will be used to parse the extratlvs from `listconfigs` in `keysend`, so we don't accidentally strip values we'd like to keep.
This commit is contained in:
committed by
Alex Myers
parent
1426ac881b
commit
4a38e37b59
@@ -114,6 +114,9 @@ bool json_to_channel_id(const char *buffer, const jsmntok_t *tok,
|
||||
bool json_to_coin_mvt_tag(const char *buffer, const jsmntok_t *tok,
|
||||
enum mvt_tag *tag);
|
||||
|
||||
/* Read a JSON value into an array of u64 */
|
||||
bool json_to_uintarr(const char *buffer, const jsmntok_t *tok, u64 **dest);
|
||||
|
||||
/* Extract reply path from this JSON */
|
||||
struct blinded_path *
|
||||
json_to_blinded_path(const tal_t *ctx, const char *buffer, const jsmntok_t *tok);
|
||||
|
||||
Reference in New Issue
Block a user