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 {