|
@ -3447,7 +3447,7 @@ bits256 bitcoin_sigtxid(char *symbol,uint8_t taddr,uint8_t pubtype,uint8_t p2sht |
|
|
len += iguana_rwnum(1,&serialized[len],sizeof(dest.vins[i].prev_vout),&dest.vins[i].prev_vout); |
|
|
len += iguana_rwnum(1,&serialized[len],sizeof(dest.vins[i].prev_vout),&dest.vins[i].prev_vout); |
|
|
} |
|
|
} |
|
|
prevouthash = bits256_doublesha256(0,serialized,len); |
|
|
prevouthash = bits256_doublesha256(0,serialized,len); |
|
|
|
|
|
dest.vins[i].sequence = 0xffffffff; |
|
|
for (i=len=0; i<dest.tx_in; i++) |
|
|
for (i=len=0; i<dest.tx_in; i++) |
|
|
len += iguana_rwnum(1,&serialized[len],sizeof(dest.vins[i].sequence),&dest.vins[i].sequence); |
|
|
len += iguana_rwnum(1,&serialized[len],sizeof(dest.vins[i].sequence),&dest.vins[i].sequence); |
|
|
//hashSequence:
|
|
|
//hashSequence:
|
|
@ -3456,7 +3456,7 @@ bits256 bitcoin_sigtxid(char *symbol,uint8_t taddr,uint8_t pubtype,uint8_t p2sht |
|
|
seqhash = bits256_doublesha256(0,serialized,len); |
|
|
seqhash = bits256_doublesha256(0,serialized,len); |
|
|
for (i=0; i<len; i++) |
|
|
for (i=0; i<len; i++) |
|
|
printf("%02x",serialized[i]); |
|
|
printf("%02x",serialized[i]); |
|
|
char str[65],str2[65]; printf(" sequenceid %08x -> %s utxotxid.%s/v%d\n",dest.vins[0].sequence,bits256_str(str,seqhash),bits256_str(str2,dest.vins[0].prev_hash),dest.vins[0].prev_vout); getchar(); |
|
|
char str[65],str2[65]; printf(" sequenceid %08x -> %s utxotxid.%s/v%d\n",dest.vins[0].sequence,bits256_str(str,seqhash),bits256_str(str2,dest.vins[0].prev_hash),dest.vins[0].prev_vout); |
|
|
|
|
|
|
|
|
for (i=len=0; i<dest.tx_out; i++) |
|
|
for (i=len=0; i<dest.tx_out; i++) |
|
|
len += iguana_voutparse(1,&serialized[len],&dest.vouts[i]); |
|
|
len += iguana_voutparse(1,&serialized[len],&dest.vouts[i]); |
|
|