Browse Source

Encode reversed hex for txid in listfunds

ppa-0.6.1
Andrew Chow 7 years ago
committed by Rusty Russell
parent
commit
f792e236eb
  1. 2
      wallet/walletrpc.c

2
wallet/walletrpc.c

@ -456,7 +456,7 @@ static void json_listfunds(struct command *cmd, const char *buffer,
json_array_start(response, "outputs");
for (int i = 0; i < tal_count(utxos); i++) {
json_object_start(response, NULL);
json_add_hex(response, "txid", &utxos[i]->txid,
json_add_hex_reversed(response, "txid", &utxos[i]->txid,
sizeof(struct sha256_double));
json_add_num(response, "output", utxos[i]->outnum);
json_add_u64(response, "value", utxos[i]->amount);

Loading…
Cancel
Save