This commit is contained in:
@@ -42,11 +42,13 @@ TransactionSignatureCreator::TransactionSignatureCreator(const CKeyStore* keysto
|
|||||||
bool TransactionSignatureCreator::CreateSig(std::vector<unsigned char>& vchSig, const CKeyID& address, const CScript& scriptCode, uint32_t consensusBranchId, CKey *pprivKey, void *extraData) const
|
bool TransactionSignatureCreator::CreateSig(std::vector<unsigned char>& vchSig, const CKeyID& address, const CScript& scriptCode, uint32_t consensusBranchId, CKey *pprivKey, void *extraData) const
|
||||||
{
|
{
|
||||||
CKey key;
|
CKey key;
|
||||||
|
fprintf(stderr,"createsig\n");
|
||||||
if (pprivKey)
|
if (pprivKey)
|
||||||
key = *pprivKey;
|
key = *pprivKey;
|
||||||
else if (!keystore || !keystore->GetKey(address, key))
|
else if (!keystore || !keystore->GetKey(address, key))
|
||||||
return false;
|
return false;
|
||||||
|
fprintf(stderr,"createsig2\n");
|
||||||
|
|
||||||
uint256 hash;
|
uint256 hash;
|
||||||
try {
|
try {
|
||||||
hash = SignatureHash(scriptCode, *txTo, nIn, nHashType, amount, consensusBranchId);
|
hash = SignatureHash(scriptCode, *txTo, nIn, nHashType, amount, consensusBranchId);
|
||||||
|
|||||||
Reference in New Issue
Block a user