This commit is contained in:
jl777
2018-09-04 01:53:15 -11:00
parent f973ac9e14
commit db5364dccf

View File

@@ -170,13 +170,10 @@ CPubKey OracleBatonPk(char *batonaddr,struct CCcontract_info *cp,CPubKey mypk)
cp->unspendablepriv2[i] = ptr[i];
}
CPrivKey vchPrivKey(vchTmp.begin(), vchTmp.end());
if (!key.Set(vchTmp.begin(), vchTmp.end(), true))
{
printf("ThreadSendAlert() : key.Set failed\n");
return(batonpk);
}
key.Set(vchTmp.begin(), vchTmp.end(), true);
batonpk = cp->unspendablepk2 = key.GetPubKey();
Getscriptaddress(batonaddr,CScript() << ParseHex(HexStr(batonpk)) << OP_CHECKSIG);
fprintf(stderr,"batonpk.(%s)\n",(char *)HexStr(batonpk).c_str());
strcpy(cp->unspendableaddr2,batonaddr);
return(batonpk);
}