mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-27 06:25:51 +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