From d93836c0ede16226617890ec83747ec9898298d8 Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Mon, 19 Sep 2016 01:13:23 +0400 Subject: [PATCH] fix "masternode status" (#1031) --- src/rpcmasternode.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/rpcmasternode.cpp b/src/rpcmasternode.cpp index ec293ac5c..ba3996246 100644 --- a/src/rpcmasternode.cpp +++ b/src/rpcmasternode.cpp @@ -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; }