Add proTxHash to masternode list rpc response (#2887)

This commit is contained in:
Daniel Hoffmann 2019-04-30 05:54:49 -07:00 committed by UdjinM6
parent dd3977523a
commit fd6aaae7f0

View File

@ -565,7 +565,8 @@ UniValue masternodelist(const JSONRPCRequest& request)
obj.push_back(Pair(strOutpoint, strInfo));
} else if (strMode == "json") {
std::ostringstream streamInfo;
streamInfo << dmn->pdmnState->addr.ToString() << " " <<
streamInfo << dmn->proTxHash.ToString() << " " <<
dmn->pdmnState->addr.ToString() << " " <<
payeeStr << " " <<
dmnToStatus(dmn) << " " <<
dmnToLastPaidTime(dmn) << " " <<
@ -578,6 +579,7 @@ UniValue masternodelist(const JSONRPCRequest& request)
if (strFilter !="" && strInfo.find(strFilter) == std::string::npos &&
strOutpoint.find(strFilter) == std::string::npos) return;
UniValue objMN(UniValue::VOBJ);
objMN.push_back(Pair("proTxHash", dmn->proTxHash.ToString()));
objMN.push_back(Pair("address", dmn->pdmnState->addr.ToString()));
objMN.push_back(Pair("payee", payeeStr));
objMN.push_back(Pair("status", dmnToStatus(dmn)));