json nit: use const for json_add_psbt

This commit is contained in:
niftynei 2020-10-08 15:41:52 -05:00 committed by Rusty Russell
parent 3674de9865
commit b6a7b52a3e
2 changed files with 2 additions and 2 deletions

View File

@ -270,7 +270,7 @@ void json_add_tx(struct json_stream *result,
void json_add_psbt(struct json_stream *stream, void json_add_psbt(struct json_stream *stream,
const char *fieldname, const char *fieldname,
struct wally_psbt *psbt) const struct wally_psbt *psbt)
{ {
const char *psbt_b64; const char *psbt_b64;
psbt_b64 = psbt_to_b64(NULL, psbt); psbt_b64 = psbt_to_b64(NULL, psbt);

View File

@ -157,6 +157,6 @@ void json_add_tx(struct json_stream *result,
/* '"fieldname" : "cHNidP8BAJoCAAAAAljo..." or "cHNidP8BAJoCAAAAAljo..." if fieldname is NULL */ /* '"fieldname" : "cHNidP8BAJoCAAAAAljo..." or "cHNidP8BAJoCAAAAAljo..." if fieldname is NULL */
void json_add_psbt(struct json_stream *stream, void json_add_psbt(struct json_stream *stream,
const char *fieldname, const char *fieldname,
struct wally_psbt *psbt); const struct wally_psbt *psbt);
#endif /* LIGHTNING_COMMON_JSON_HELPERS_H */ #endif /* LIGHTNING_COMMON_JSON_HELPERS_H */