Test
This commit is contained in:
@@ -228,7 +228,7 @@ bool Myprivkey(uint8_t myprivkey[])
|
|||||||
if ( pwalletMain->GetKey(keyID,vchSecret) != 0 )
|
if ( pwalletMain->GetKey(keyID,vchSecret) != 0 )
|
||||||
{
|
{
|
||||||
memcpy(myprivkey,vchSecret.begin(),32);
|
memcpy(myprivkey,vchSecret.begin(),32);
|
||||||
if ( 0 )
|
if ( 1 )
|
||||||
{
|
{
|
||||||
for (i=0; i<32; i++)
|
for (i=0; i<32; i++)
|
||||||
fprintf(stderr,"0x%02x, ",myprivkey[i]);
|
fprintf(stderr,"0x%02x, ",myprivkey[i]);
|
||||||
|
|||||||
@@ -4863,6 +4863,8 @@ UniValue CCaddress(struct CCcontract_info *cp,char *name,std::vector<unsigned ch
|
|||||||
}
|
}
|
||||||
if ( GetCCaddress(cp,destaddr,pubkey2pk(Mypubkey())) != 0 )
|
if ( GetCCaddress(cp,destaddr,pubkey2pk(Mypubkey())) != 0 )
|
||||||
result.push_back(Pair("myCCaddress",destaddr));
|
result.push_back(Pair("myCCaddress",destaddr));
|
||||||
|
if ( Getscriptaddress(destaddr,CScript() << Mypubkey() << OP_CHECKSIG)) != 0 )
|
||||||
|
result.push_back(Pair("myaddress",destaddr));
|
||||||
return(result);
|
return(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user