mirror of
https://github.com/XRPLF/rippled.git
synced 2026-09-27 15:28:03 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user