fix(telemetry): drop the optional dereference the identity change left behind

nodeIdentity_ is no longer a std::optional, so setNodeId() must read it
directly. The merge could not flag this: phase-8 changed the member's type and
this line lives only on phase-9, so neither side of the merge touched the same
file region.
This commit is contained in:
Pratik Mankawde
2026-09-14 20:42:08 +01:00
parent b10fe32657
commit f04f03b6b2

View File

@@ -1460,7 +1460,7 @@ ApplicationImp::setup(boost::program_options::variables_map const& cmdline)
// xrpl.node.id always carries the node public key. Unlike
// service_instance_id it is not configurable, so traces and metrics keep a
// stable per-node key whatever [telemetry] says.
telemetry_->setNodeId(toBase58(TokenType::NodePublic, nodeIdentity_->first));
telemetry_->setNodeId(toBase58(TokenType::NodePublic, nodeIdentity_.first));
// Start tracing here, not in start(). Spans are emitted during the rest of
// setup() — the first consensus round in beginConsensus() below — and are