Browse Source

Revert SMART txid calc

jl777
jl777 7 years ago
parent
commit
a79054de10
  1. 8
      iguana/exchanges/LP_bitcoin.c

8
iguana/exchanges/LP_bitcoin.c

@ -2027,19 +2027,13 @@ 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 && strcmp(symbol,"SMART") != 0 )
if ( strcmp(symbol,"GRS") != 0 )
txid = bits256_doublesha256(0,serialized,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(revtxid.bytes,txid.bytes,sizeof(txid));
for (i=0; i<32; i++)
txid.bytes[i] = revtxid.bytes[31 - i];
}
}
return(txid);
}

Loading…
Cancel
Save