|
|
@ -2041,8 +2041,13 @@ bits256 bits256_calctxid(char *symbol,uint8_t *serialized,int32_t len) |
|
|
|
bits256 bits256_calcaddrhash(char *symbol,uint8_t *serialized,int32_t len) |
|
|
|
{ |
|
|
|
bits256 hash; |
|
|
|
memset(hash.bytes,0,sizeof(hash)); |
|
|
|
if ( strcmp(symbol,"GRS") != 0 ) |
|
|
|
{ |
|
|
|
if ( strcmp(symbol,"SMART") != 0 ) |
|
|
|
hash = bits256_doublesha256(0,serialized,len); |
|
|
|
else HashKeccak(hash.bytes,serialized,len); |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
HashGroestl(hash.bytes,serialized,len); |
|
|
@ -3442,7 +3447,10 @@ bits256 bitcoin_sigtxid(char *symbol,uint8_t taddr,uint8_t pubtype,uint8_t p2sht |
|
|
|
hashtype |= (0x777 << 20); |
|
|
|
#endif |
|
|
|
if ( btcpflag != 0 ) |
|
|
|
{ |
|
|
|
hashtype = 0x2a41; |
|
|
|
printf("BTCP detected: hardcode hashtype to %08x\n",hashtype); |
|
|
|
} |
|
|
|
len += iguana_rwnum(1,&serialized[len],sizeof(hashtype),&hashtype); |
|
|
|
if ( sbtcflag != 0 ) |
|
|
|
{ |
|
|
|