nope nope
This commit is contained in:
@@ -942,7 +942,7 @@ UniValue minerids(const UniValue& params, bool fHelp, const CPubKey& mypk)
|
|||||||
}
|
}
|
||||||
for (i=0; i<64; i++)
|
for (i=0; i<64; i++)
|
||||||
{
|
{
|
||||||
UniValue item(UniValue::VOBJ); std::string hex,kmdaddress; char *hexstr,kmdaddr[64],*ptr; int32_t m;
|
UniValue item(UniValue::VOBJ); std::string hex,hushaddress; char *hexstr,kmdaddr[64],*ptr; int32_t m;
|
||||||
hex.resize(66);
|
hex.resize(66);
|
||||||
hexstr = (char *)hex.data();
|
hexstr = (char *)hex.data();
|
||||||
for (j=0; j<33; j++)
|
for (j=0; j<33; j++)
|
||||||
@@ -951,10 +951,10 @@ UniValue minerids(const UniValue& params, bool fHelp, const CPubKey& mypk)
|
|||||||
|
|
||||||
bitcoin_address(kmdaddr,60,pubkeys[i],33);
|
bitcoin_address(kmdaddr,60,pubkeys[i],33);
|
||||||
m = (int32_t)strlen(kmdaddr);
|
m = (int32_t)strlen(kmdaddr);
|
||||||
kmdaddress.resize(m);
|
hushaddress.resize(m);
|
||||||
ptr = (char *)kmdaddress.data();
|
ptr = (char *)hushaddress.data();
|
||||||
memcpy(ptr,kmdaddr,m);
|
memcpy(ptr,kmdaddr,m);
|
||||||
item.push_back(Pair("HUSHaddress", kmdaddress));
|
item.push_back(Pair("HUSHaddress", hushaddress));
|
||||||
|
|
||||||
item.push_back(Pair("pubkey", hex));
|
item.push_back(Pair("pubkey", hex));
|
||||||
item.push_back(Pair("blocks", tally[i]));
|
item.push_back(Pair("blocks", tally[i]));
|
||||||
@@ -997,7 +997,7 @@ UniValue notaries(const UniValue& params, bool fHelp, const CPubKey& mypk)
|
|||||||
for (i=0; i<n; i++)
|
for (i=0; i<n; i++)
|
||||||
{
|
{
|
||||||
UniValue item(UniValue::VOBJ);
|
UniValue item(UniValue::VOBJ);
|
||||||
std::string btcaddress,kmdaddress,hex;
|
std::string btcaddress,hushaddress,hex;
|
||||||
hex.resize(66);
|
hex.resize(66);
|
||||||
hexstr = (char *)hex.data();
|
hexstr = (char *)hex.data();
|
||||||
for (j=0; j<33; j++)
|
for (j=0; j<33; j++)
|
||||||
@@ -1013,10 +1013,10 @@ UniValue notaries(const UniValue& params, bool fHelp, const CPubKey& mypk)
|
|||||||
|
|
||||||
bitcoin_address(kmdaddr,60,pubkeys[i],33);
|
bitcoin_address(kmdaddr,60,pubkeys[i],33);
|
||||||
m = (int32_t)strlen(kmdaddr);
|
m = (int32_t)strlen(kmdaddr);
|
||||||
kmdaddress.resize(m);
|
hushaddress.resize(m);
|
||||||
ptr = (char *)kmdaddress.data();
|
ptr = (char *)hushaddress.data();
|
||||||
memcpy(ptr,kmdaddr,m);
|
memcpy(ptr,kmdaddr,m);
|
||||||
item.push_back(Pair("HUSHaddress", kmdaddress));
|
item.push_back(Pair("HUSHaddress", hushaddress));
|
||||||
a.push_back(item);
|
a.push_back(item);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user