X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Fbitcoinrpc.cpp;h=ce298401946fc079d29755a5240b9ac0ae69a636;hp=09be73af3de838894aa64d757c9f86e6bfaf0449;hb=11529c6e4f7288d8a64c488a726ee3821c7adefe;hpb=1684f98b27de9323d24ee4489af54dd84083956a diff --git a/src/bitcoinrpc.cpp b/src/bitcoinrpc.cpp index 09be73a..ce29840 100644 --- a/src/bitcoinrpc.cpp +++ b/src/bitcoinrpc.cpp @@ -1701,6 +1701,9 @@ Value validateaddress(const Array& params, bool fHelp) ret.push_back(Pair("pubkey", HexStr(vchPubKey))); std::string strPubKey(vchPubKey.begin(), vchPubKey.end()); ret.push_back(Pair("pubkey58", EncodeBase58(vchPubKey))); + CKey key; + key.SetPubKey(vchPubKey); + ret.push_back(Pair("iscompressed", key.IsCompressed())); } else if (pwalletMain->HaveCScript(address.GetHash160())) {