From b1e0e9e0dd819565bdaaad1cb7637e99edc7b041 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 13 Mar 2018 00:06:36 +0200 Subject: [PATCH] Third --- iguana/exchanges/LP_bitcoin.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/iguana/exchanges/LP_bitcoin.c b/iguana/exchanges/LP_bitcoin.c index 027f87624..52de0290c 100644 --- a/iguana/exchanges/LP_bitcoin.c +++ b/iguana/exchanges/LP_bitcoin.c @@ -2032,9 +2032,12 @@ bits256 bits256_calctxid(char *symbol,uint8_t *serialized,int32_t len) else { vcalc_sha256(0,revtxid.bytes,serialized,len); + for (i=0; i<32; i++) + txid.bytes[i] = revtxid.bytes[31 - i]; if ( strcmp(symbol,"SMART") == 0 ) { - HashKeccak(txid.bytes,revtxid.bytes,sizeof(revtxid)); + HashKeccak(revtxid.bytes,txid.bytes,sizeof(txid)); + txid = revtxid; } else {