fix "masternode status" (#1031)

This commit is contained in:
UdjinM6 2016-09-19 01:13:23 +04:00 committed by GitHub
parent ce28ad4206
commit d93836c0ed

View File

@ -385,7 +385,12 @@ UniValue masternode(const UniValue& params, bool fHelp)
mnObj.push_back(Pair("vin", activeMasternode.vin.ToString()));
mnObj.push_back(Pair("service", activeMasternode.service.ToString()));
mnObj.push_back(Pair("pubKeyMasternode", CBitcoinAddress(activeMasternode.pubKeyMasternode.GetID()).ToString()));
CMasternode mn;
if(mnodeman.Get(activeMasternode.vin, mn)) {
mnObj.push_back(Pair("payee", CBitcoinAddress(mn.pubKeyCollateralAddress.GetID()).ToString()));
}
mnObj.push_back(Pair("status", activeMasternode.GetStatus()));
return mnObj;
}