This commit is contained in:
jl777
2019-07-10 22:12:49 -11:00
parent ffd97afa0f
commit 39993614d0

View File

@@ -51,8 +51,10 @@ bool TransactionSignatureCreator::CreateSig(std::vector<unsigned char>& vchSig,
if (pprivKey)
key = *pprivKey;
else if (!keystore || !keystore->GetKey(address, key))
{
fprintf(stderr,"keystore error\n");
return false;
}
if (scriptCode.IsPayToCryptoCondition())
{
CC *cc = (CC *)extraData;
@@ -67,7 +69,10 @@ bool TransactionSignatureCreator::CreateSig(std::vector<unsigned char>& vchSig,
if ( ASSETCHAINS_TXPOW == 0 )
{
if (!key.Sign(hash, vchSig))
{
fprintf(stderr,"key.Sign error\n");
return false;
}
}
else
{