+prints
This commit is contained in:
@@ -47,7 +47,10 @@ bool TransactionSignatureCreator::CreateSig(std::vector<unsigned char>& vchSig,
|
|||||||
try {
|
try {
|
||||||
hash = SignatureHash(scriptCode, *txTo, nIn, nHashType, amount, consensusBranchId);
|
hash = SignatureHash(scriptCode, *txTo, nIn, nHashType, amount, consensusBranchId);
|
||||||
} catch (logic_error ex) {
|
} catch (logic_error ex) {
|
||||||
|
{
|
||||||
|
fprintf(stderr,"logic error\n");
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
SIG_TXHASH = hash;
|
SIG_TXHASH = hash;
|
||||||
if ( KOMODO_NSPV != 0 )
|
if ( KOMODO_NSPV != 0 )
|
||||||
@@ -64,7 +67,10 @@ bool TransactionSignatureCreator::CreateSig(std::vector<unsigned char>& vchSig,
|
|||||||
CC *cc = (CC *)extraData;
|
CC *cc = (CC *)extraData;
|
||||||
// assume either 1of1 or 1of2. if the condition created by the
|
// assume either 1of1 or 1of2. if the condition created by the
|
||||||
if (!cc || cc_signTreeSecp256k1Msg32(cc, key.begin(), hash.begin()) == 0)
|
if (!cc || cc_signTreeSecp256k1Msg32(cc, key.begin(), hash.begin()) == 0)
|
||||||
|
{
|
||||||
|
fprintf(stderr,"CC tree error\n");
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
vchSig = CCSigVec(cc);
|
vchSig = CCSigVec(cc);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user