Skip to content

Report neo-node version from getversion (neo-node#983) - #1096

Open
cschuchardt88 wants to merge 3 commits into
neo-project:master-n3from
cschuchardt88:fix/rpc-getversion-node-version
Open

Report neo-node version from getversion (neo-node#983)#1096
cschuchardt88 wants to merge 3 commits into
neo-project:master-n3from
cschuchardt88:fix/rpc-getversion-node-version

Conversation

@cschuchardt88

@cschuchardt88 cschuchardt88 commented Aug 28, 2026

Copy link
Copy Markdown
Member

Summary

getversion reported useragent from LocalNode.UserAgent, which is the Neo.dll assembly, not neo-cli / RpcServer. After a node bump (e.g. 3.9.2 / 3.10.2) the RPC still advertised the older library version.

Fixes #983

Change

No new JSON field. The existing useragent string keeps the product name and uses the RpcServer assembly version (VersionPrefix), so /Neo:3.10.1/ becomes /Neo:3.10.2/. Malformed useragents fall back to /Neo:{version}/.

Tests

  • getversion has no version property
  • useragent contains the RpcServer 3-part assembly version
  • UserAgentWithVersion keeps the product name and replaces the version
  • rpc.maxiteratorresultitems / rpc.sessionenabled match settings

Independent of other neo-node branches.

UserAgent is taken from Neo.dll (LocalNode), so a 3.10.2 node still
advertised 3.10.1. Add a version field from the RpcServer assembly.
@github-actions github-actions Bot added the N3 label Aug 28, 2026
@codecov

codecov Bot commented Aug 28, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 88.88889% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 50.97%. Comparing base (82b15f0) to head (df8dc00).

Files with missing lines Patch % Lines
plugins/RpcServer/RpcServer.Node.cs 88.88% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@              Coverage Diff              @@
##           master-n3    #1096      +/-   ##
=============================================
+ Coverage      50.88%   50.97%   +0.08%     
=============================================
  Files            284      284              
  Lines          16660    16668       +8     
  Branches        2137     2139       +2     
=============================================
+ Hits            8477     8496      +19     
+ Misses          7619     7605      -14     
- Partials         564      567       +3     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Assert version is a 3-part assembly version, rpc settings are present,
and version is not the Neo.dll useragent string.

@roman-khimov roman-khimov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

useragent can be just about anything, I'd rather not introduce new fields.

Drop the extra version field. Replace the version in LocalNode.UserAgent
so /Neo:3.10.1/ becomes /Neo:3.10.2/ (neo-node#983).
@cschuchardt88

Copy link
Copy Markdown
Member Author

Dropped the extra version field per review.

getversion now puts the node / RpcServer assembly version into the existing useragent string (same /Name:x.y.z/ shape). /Neo:3.10.1/ from Neo.dll becomes /Neo:3.10.2/ when the node is 3.10.2. No new JSON keys.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

neo-cli v3.9.2 returns incorrect version (3.9.1)

2 participants