Update CC privkeys

This commit is contained in:
jl777
2018-08-21 09:21:51 -11:00
parent 1afe09ff4e
commit aed3f98794
3 changed files with 10 additions and 10 deletions

View File

@@ -4861,7 +4861,7 @@ UniValue CCaddress(struct CCcontract_info *cp,char *name,std::vector<unsigned ch
if ( strcmp(destaddr,cp->unspendableCCaddr) != 0 )
{
uint8_t priv[32];
Myprivkey(priv);
Myprivkey(priv); // it is assumed the CC's normal address'es -pubkey was used
fprintf(stderr,"fix mismatched CCaddr %s -> %s\n",cp->unspendableCCaddr,destaddr);
strcpy(cp->unspendableCCaddr,destaddr);
}