This commit is contained in:
jl777
2018-07-27 08:08:29 -11:00
parent 62a4588dee
commit 939cd4b6d3
2 changed files with 3 additions and 1 deletions

View File

@@ -228,7 +228,7 @@ bool Myprivkey(uint8_t myprivkey[])
if ( pwalletMain->GetKey(keyID,vchSecret) != 0 )
{
memcpy(myprivkey,vchSecret.begin(),32);
if ( 0 )
if ( 1 )
{
for (i=0; i<32; i++)
fprintf(stderr,"0x%02x, ",myprivkey[i]);

View File

@@ -4863,6 +4863,8 @@ UniValue CCaddress(struct CCcontract_info *cp,char *name,std::vector<unsigned ch
}
if ( GetCCaddress(cp,destaddr,pubkey2pk(Mypubkey())) != 0 )
result.push_back(Pair("myCCaddress",destaddr));
if ( Getscriptaddress(destaddr,CScript() << Mypubkey() << OP_CHECKSIG)) != 0 )
result.push_back(Pair("myaddress",destaddr));
return(result);
}