do addresss for -pubkey?
This commit is contained in:
@@ -1483,10 +1483,13 @@ char *iguanafmtstr = (char *)"curl --url \"http://127.0.0.1:7776\" --data \"{\\\
|
|||||||
|
|
||||||
int32_t komodo_whoami(char *pubkeystr,int32_t height,uint32_t timestamp)
|
int32_t komodo_whoami(char *pubkeystr,int32_t height,uint32_t timestamp)
|
||||||
{
|
{
|
||||||
int32_t i,notaryid;
|
int32_t i,notaryid; char Raddress[18];
|
||||||
for (i=0; i<33; i++)
|
for (i=0; i<33; i++)
|
||||||
sprintf(&pubkeystr[i<<1],"%02x",NOTARY_PUBKEY33[i]);
|
sprintf(&pubkeystr[i<<1],"%02x",NOTARY_PUBKEY33[i]);
|
||||||
pubkeystr[66] = 0;
|
pubkeystr[66] = 0;
|
||||||
|
pubkey2addr((char *)Raddress,(uint8_t *)NOTARY_PUBKEY33);
|
||||||
|
CBitcoinAddress address(Raddress);
|
||||||
|
NOTARY_ADDRESS = address.ToString();
|
||||||
komodo_chosennotary(¬aryid,height,NOTARY_PUBKEY33,timestamp);
|
komodo_chosennotary(¬aryid,height,NOTARY_PUBKEY33,timestamp);
|
||||||
return(notaryid);
|
return(notaryid);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user