mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Always provided extended RPC ledger_header info.
This commit is contained in:
@@ -2299,11 +2299,8 @@ Json::Value RPCHandler::doLedgerHeader(Json::Value jvRequest)
|
|||||||
|
|
||||||
jvResult["ledger_data"] = strHex(s.peekData());
|
jvResult["ledger_data"] = strHex(s.peekData());
|
||||||
|
|
||||||
if (mRole == ADMIN)
|
// This information isn't verified, they should only use it if they trust us.
|
||||||
{
|
lpLedger->addJson(jvResult, 0);
|
||||||
// As admin, they can trust us, so we provide this information.
|
|
||||||
lpLedger->addJson(jvResult, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
return jvResult;
|
return jvResult;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user