Address Copilot feedback

This commit is contained in:
Bart
2026-04-21 11:08:02 -07:00
parent 05b4c67b96
commit e31419aa06
2 changed files with 3 additions and 6 deletions

View File

@@ -198,7 +198,7 @@ TransactionAcquire::takeNodes(
ConsensusTransSetSF sf(app_, app_.getTempNodeCache());
for (auto& d : data)
for (auto const& d : data)
{
if (d.first.isRoot())
{

View File

@@ -3465,11 +3465,8 @@ PeerImp::processLedgerRequest(std::shared_ptr<protocol::TMGetLedger> const& m)
++i)
{
auto const shaMapNodeId{deserializeSHAMapNodeID(m->nodeids(i))};
if (!shaMapNodeId.has_value())
{
JLOG(p_journal_.error()) << "processLedgerRequest: Invalid SHAMap node ID";
return;
}
XRPL_ASSERT(
shaMapNodeId.has_value(), "xrpl::PeerImp::processLedgerRequest : valid node ID");
data.clear();
data.reserve(Tuning::softMaxReplyNodes);