Browse Source

wallet/walletrpc.c: Show input annotations for inputs.

Changelog-None
paymod-02
ZmnSCPxj jxPCSnmZ 5 years ago
committed by Christian Decker
parent
commit
d14460ef3d
  1. 2
      wallet/walletrpc.c

2
wallet/walletrpc.c

@ -1105,7 +1105,7 @@ static void json_transaction_details(struct json_stream *response,
json_add_u32(response, "index", in->index); json_add_u32(response, "index", in->index);
json_add_u32(response, "sequence", in->sequence); json_add_u32(response, "sequence", in->sequence);
#if EXPERIMENTAL_FEATURES #if EXPERIMENTAL_FEATURES
struct tx_annotation *ann = &tx->output_annotations[i]; struct tx_annotation *ann = &tx->input_annotations[i];
const char *txtype = txtype_to_string(ann->type); const char *txtype = txtype_to_string(ann->type);
if (txtype != NULL) if (txtype != NULL)
json_add_string(response, "type", txtype); json_add_string(response, "type", txtype);

Loading…
Cancel
Save