fix
This commit is contained in:
@@ -5011,14 +5011,14 @@ UniValue setpubkey(const UniValue& params, bool fHelp)
|
|||||||
if (isValid)
|
if (isValid)
|
||||||
{
|
{
|
||||||
CTxDestination dest = address.Get();
|
CTxDestination dest = address.Get();
|
||||||
NOTARY_ADDRESS = address.ToString();
|
|
||||||
#ifdef ENABLE_WALLET
|
#ifdef ENABLE_WALLET
|
||||||
isminetype mine = pwalletMain ? IsMine(*pwalletMain, dest) : ISMINE_NO;
|
isminetype mine = pwalletMain ? IsMine(*pwalletMain, dest) : ISMINE_NO;
|
||||||
if ( mine == ISMINE_NO ) {
|
if ( mine == ISMINE_NO ) {
|
||||||
result.push_back(Pair("WARNING", "privkey for this pubkey is not imported to wallet!"));
|
result.push_back(Pair("error", "privkey for this pubkey is not imported to wallet!"));
|
||||||
} else {
|
} else {
|
||||||
result.push_back(Pair("ismine", "true"));
|
result.push_back(Pair("ismine", "true"));
|
||||||
#endif
|
#endif
|
||||||
|
NOTARY_ADDRESS = address.ToString();
|
||||||
std::string notaryname;
|
std::string notaryname;
|
||||||
if ( (IS_STAKED_NOTARY= StakedNotaryID(notaryname, Raddress)) > -1 ) {
|
if ( (IS_STAKED_NOTARY= StakedNotaryID(notaryname, Raddress)) > -1 ) {
|
||||||
result.push_back(Pair("IsNotary", notaryname));
|
result.push_back(Pair("IsNotary", notaryname));
|
||||||
|
|||||||
Reference in New Issue
Block a user