This commit is contained in:
@@ -277,13 +277,13 @@ std::string FinalizeCCTx(uint64_t CCmask,struct CCcontract_info *cp,CMutableTran
|
|||||||
return("");
|
return("");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
uint256 sighash = SignatureHash(CCPubKey(cond), mtx, i, SIGHASH_ALL, utxovalues[i],consensusBranchId, &txdata);
|
uint256 sighash = SignatureHash(CCPubKey(cond), mtx, i, SIGHASH_ALL,utxovalues[i],consensusBranchId, &txdata);
|
||||||
if ( cc_signTreeSecp256k1Msg32(cond,privkey,sighash.begin()) != 0 )
|
if ( cc_signTreeSecp256k1Msg32(cond,privkey,sighash.begin()) != 0 )
|
||||||
{
|
{
|
||||||
int32_t z;
|
int32_t z;
|
||||||
for (z=0; z<32; z++)
|
for (z=0; z<32; z++)
|
||||||
fprintf(stderr,"%02x",((uint8_t *)sighash.begin())[z]);
|
fprintf(stderr,"%02x",((uint8_t *)sighash.begin())[z]);
|
||||||
fprintf(stderr," sighash\n");
|
fprintf(stderr," sighash [%d] %.8f %x\n",i,(double)utxovalues[i]/COIN,consensusBranchId);
|
||||||
//for (z=0; z<32; z++)
|
//for (z=0; z<32; z++)
|
||||||
// fprintf(stderr,"%02x",privkey[z]);
|
// fprintf(stderr,"%02x",privkey[z]);
|
||||||
//fprintf(stderr," signed with privkey\n");
|
//fprintf(stderr," signed with privkey\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user