Browse Source

json nit: use const for json_add_psbt

travis-experimental
niftynei 4 years ago
committed by Rusty Russell
parent
commit
b6a7b52a3e
  1. 2
      common/json_helpers.c
  2. 2
      common/json_helpers.h

2
common/json_helpers.c

@ -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);

2
common/json_helpers.h

@ -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 */

Loading…
Cancel
Save