Fix typo in field access

This commit is contained in:
Bart
2026-07-29 13:24:18 -04:00
parent e4a7e61f28
commit aa4cae1c8f

View File

@@ -1741,7 +1741,9 @@ PeerImp::onMessage(std::shared_ptr<protocol::TMLedgerData> const& m)
{
auto* ledgerNode = m->mutable_nodes(i);
if (ledgerNode->has_nodedata().empty())
// All nodes should have non-empty data. The field is required so we don't need to
// check for presence first.
if (ledgerNode->nodedata().empty())
{
badData(
"Received node with empty data while relaying ledger data for " +