This commit is contained in:
jl777
2018-09-04 02:08:27 -11:00
parent db5364dccf
commit 6b9a057711

View File

@@ -171,6 +171,7 @@ CPubKey OracleBatonPk(char *batonaddr,struct CCcontract_info *cp,CPubKey mypk)
}
CPrivKey vchPrivKey(vchTmp.begin(), vchTmp.end());
key.Set(vchTmp.begin(), vchTmp.end(), true);
key.GetPrivKey();
batonpk = cp->unspendablepk2 = key.GetPubKey();
Getscriptaddress(batonaddr,CScript() << ParseHex(HexStr(batonpk)) << OP_CHECKSIG);
fprintf(stderr,"batonpk.(%s)\n",(char *)HexStr(batonpk).c_str());