Page MenuHomePhabricator

Add a new getinfo rpc
ClosedPublic

Authored by Fabien on Tue, Dec 3, 10:37.

Details

Reviewers
tobias_ruck
PiRK
Group Reviewers
Restricted Project
Commits
rABCd611537d0336: Add a new getinfo rpc
Summary

This returns the node version (which currently is in getnetworkinfo, which is counter intuitive) and whether avalanche is enabled.
This gives a fast (no lock) method to get the version and whether the node is avalanche enabled, to be used in the functional tests in a follow-up.
This RPC will be much faster than the bloated getnetworkinfo for such simple data.

Test Plan
./test/functional/test_runner.py abc_rpc_getinfo

Event Timeline

Fabien requested review of this revision.Tue, Dec 3, 10:37
Fabien added a child revision: Restricted Differential Revision.Tue, Dec 3, 11:13
This revision is now accepted and ready to land.Tue, Dec 3, 13:21
This revision was landed with ongoing or failed builds.Tue, Dec 3, 13:26
This revision was automatically updated to reflect the committed changes.