Skip to content

Commit acefaa8

Browse files
committed
RPC: add verified DMN connection info to 'getpeerinfo'
1 parent 3897ae5 commit acefaa8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/rpc/net.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,13 @@ UniValue getpeerinfo(const JSONRPCRequest& request)
180180
}
181181
obj.pushKV("bytesrecv_per_msg", recvPerMsgCmd);
182182

183+
// DMN data
184+
if (stats.m_masternode_connection) {
185+
obj.pushKV("masternode_iqr_conn", stats.m_masternode_iqr_connection);
186+
obj.pushKV("verif_mn_proreg_tx_hash", stats.verifiedProRegTxHash.GetHex());
187+
obj.pushKV("verif_mn_operator_pubkey_hash", stats.verifiedPubKeyHash.GetHex());
188+
}
189+
183190
ret.push_back(obj);
184191
}
185192

0 commit comments

Comments
 (0)