This commit is contained in:
@@ -359,7 +359,7 @@ static bool SignStep(const BaseSignatureCreator& creator, const CScript& scriptP
|
|||||||
}
|
}
|
||||||
|
|
||||||
CKeyID keyID;
|
CKeyID keyID;
|
||||||
|
fprintf(stderr,"whichtype.%d vs %d\n",whichTypeRet,TX_PUBKEYHASH);
|
||||||
switch (whichTypeRet)
|
switch (whichTypeRet)
|
||||||
{
|
{
|
||||||
case TX_NONSTANDARD:
|
case TX_NONSTANDARD:
|
||||||
@@ -371,12 +371,16 @@ static bool SignStep(const BaseSignatureCreator& creator, const CScript& scriptP
|
|||||||
case TX_PUBKEYHASH:
|
case TX_PUBKEYHASH:
|
||||||
keyID = CKeyID(uint160(vSolutions[0]));
|
keyID = CKeyID(uint160(vSolutions[0]));
|
||||||
if (!Sign1(keyID, creator, scriptPubKey, ret, consensusBranchId))
|
if (!Sign1(keyID, creator, scriptPubKey, ret, consensusBranchId))
|
||||||
|
{
|
||||||
|
fprintf(stderr,"sign1 error\n");
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
CPubKey vch;
|
CPubKey vch;
|
||||||
creator.KeyStore().GetPubKey(keyID, vch);
|
creator.KeyStore().GetPubKey(keyID, vch);
|
||||||
ret.push_back(ToByteVector(vch));
|
ret.push_back(ToByteVector(vch));
|
||||||
|
fprintf(stderr,"push pubkey\n");
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
case TX_SCRIPTHASH:
|
case TX_SCRIPTHASH:
|
||||||
|
|||||||
Reference in New Issue
Block a user