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

Changelog-None
This commit is contained in:
ZmnSCPxj jxPCSnmZ 2020-06-30 14:02:30 +08:00 committed by Christian Decker
parent 6b3bcd49d2
commit d14460ef3d

View File

@ -1105,7 +1105,7 @@ static void json_transaction_details(struct json_stream *response,
json_add_u32(response, "index", in->index);
json_add_u32(response, "sequence", in->sequence);
#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);
if (txtype != NULL)
json_add_string(response, "type", txtype);