This commit is contained in:
blackjok3r
2018-11-03 15:27:44 +08:00
parent 55fd0444f6
commit e126f4cecf

View File

@@ -244,6 +244,7 @@ bool ExtractDestination(const CScript& scriptPubKey, CTxDestination& addressRet)
if (whichType == TX_PUBKEY) if (whichType == TX_PUBKEY)
{ {
CPubKey pubKey(vSolutions[0]); CPubKey pubKey(vSolutions[0]);
fprintf(stderr, "pubkey in exdest: %s\n",pubKey.GetHash().ToString().c_str());
if (!pubKey.IsValid()) if (!pubKey.IsValid())
{ {
fprintf(stderr,"TX_PUBKEY invalid pubkey\n"); fprintf(stderr,"TX_PUBKEY invalid pubkey\n");
@@ -263,7 +264,7 @@ bool ExtractDestination(const CScript& scriptPubKey, CTxDestination& addressRet)
addressRet = CScriptID(uint160(vSolutions[0])); addressRet = CScriptID(uint160(vSolutions[0]));
return true; return true;
} }
else if (IsCryptoConditionsEnabled() != 0 && whichType == TX_CRYPTOCONDITION) else if (IsCryptoConditionsEnabled() != 0 && whichType == TX_CRYPTOCONDITION)
{ {
addressRet = CKeyID(uint160(vSolutions[0])); addressRet = CKeyID(uint160(vSolutions[0]));