From f792e236eb90b896c7909b5f9c27d2554fea1ae5 Mon Sep 17 00:00:00 2001 From: Andrew Chow Date: Tue, 12 Dec 2017 15:32:32 -0500 Subject: [PATCH] Encode reversed hex for txid in listfunds --- wallet/walletrpc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wallet/walletrpc.c b/wallet/walletrpc.c index 707aa438d..9c4982066 100644 --- a/wallet/walletrpc.c +++ b/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);