Browse Source

SMART test

jl777
jl777 7 years ago
parent
commit
0147a16358
  1. 7
      iguana/exchanges/LP_bitcoin.c
  2. 2
      iguana/exchanges/coins

7
iguana/exchanges/LP_bitcoin.c

@ -2027,11 +2027,16 @@ 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
{
vcalc_sha256(0,revtxid.bytes,serialized,len);
if ( strcmp(symbol,"SMART") == 0 )
{
HashKeccak(txid.bytes,revtxid.bytes,sizeof(revtxid));
revtxid = txid;
}
for (i=0; i<32; i++)
txid.bytes[i] = revtxid.bytes[31 - i];
}

2
iguana/exchanges/coins

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save