mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Add new 'consensus_info' RPC command to help troubleshoot consensus convergence issues.
This commit is contained in:
@@ -1106,6 +1106,16 @@ bool NetworkOPs::recvValidation(const SerializedValidation::pointer& val)
|
||||
return theApp->getValidations().addValidation(val);
|
||||
}
|
||||
|
||||
Json::Value NetworkOPs::getConsensusInfo()
|
||||
{
|
||||
if (mConsensus)
|
||||
return mConsensus->getJson(true);
|
||||
|
||||
Json::Value info = Json::objectValue;
|
||||
info["consensus"] = "none";
|
||||
return info;
|
||||
}
|
||||
|
||||
Json::Value NetworkOPs::getServerInfo(bool human, bool admin)
|
||||
{
|
||||
Json::Value info = Json::objectValue;
|
||||
|
||||
Reference in New Issue
Block a user