From 381de93f7dba824e34ba02f805ec958a28f4f27b Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 13 Mar 2018 00:19:45 +0200 Subject: [PATCH] Test --- iguana/exchanges/LP_bitcoin.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/iguana/exchanges/LP_bitcoin.c b/iguana/exchanges/LP_bitcoin.c index 4287d844b..e57d79c0b 100644 --- a/iguana/exchanges/LP_bitcoin.c +++ b/iguana/exchanges/LP_bitcoin.c @@ -2027,14 +2027,18 @@ bits256 bits256_calctxid(char *symbol,uint8_t *serialized,int32_t len) { bits256 txid,revtxid; int32_t i; memset(txid.bytes,0,sizeof(txid)); - if ( strcmp(symbol,"GRS") != 0 ) + if ( strcmp(symbol,"GRS") != 0 && strcmp(symbol,"SMART") != 0 ) txid = bits256_doublesha256(0,serialized,len); - else + else if ( strcmp(symbol,"GRS") == 0 ) { vcalc_sha256(0,revtxid.bytes,serialized,len); for (i=0; i<32; i++) txid.bytes[i] = revtxid.bytes[31 - i]; } + else + { + HashKeccak(txid.bytes,serialized,len); + } return(txid); }