Skip to content

fix(api): incorrect field mappings in GRPC GetStatsInfo and GetNodeInfo - #6930

Open
xxo1shine wants to merge 1 commit into
tronprotocol:developfrom
xxo1shine:fix/node-info-metrics-field-mapping
Open

fix(api): incorrect field mappings in GRPC GetStatsInfo and GetNodeInfo#6930
xxo1shine wants to merge 1 commit into
tronprotocol:developfrom
xxo1shine:fix/node-info-metrics-field-mapping

Conversation

@xxo1shine

@xxo1shine xxo1shine commented Aug 27, 2026

Copy link
Copy Markdown
Collaborator

What does this PR do?
Node and network API responses populated two fields from the wrong source values because of copy-and-paste mapping errors.
Map needSyncFromPeer from the corresponding peer state and assign UDP inbound traffic to the udpInTraffic protobuf field.

Fixes #6926

Why are these changes required?

This PR has been tested by:

  • Unit Tests
  • Manual Testing

Follow up

Extra details

Node and network API responses populated two fields from the wrong source values because of copy-and-paste mapping errors.

Map needSyncFromPeer from the corresponding peer state and assign UDP inbound traffic to the udpInTraffic protobuf field.
@xxo1shine xxo1shine changed the title fix(api): Incorrect field mappings in GRPC GetStatsInfo and GetNodeInfo fix(api): incorrect field mappings in GRPC GetStatsInfo and GetNodeInfo Aug 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect field mappings in GRPC GetStatsInfo and GetNodeInfo

1 participant