v4.0: fix(version): correct version!() macro for v4::Version (backport of #10883)#10911
Conversation
(cherry picked from commit b47c419)
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## v4.0 #10911 +/- ##
=========================================
+ Coverage 83.0% 83.7% +0.7%
=========================================
Files 836 822 -14
Lines 316338 311717 -4621
=========================================
- Hits 262659 261049 -1610
+ Misses 53679 50668 -3011 🚀 New features to boost your workflow:
|
I guess the |
2^15 + 2 sounds expected when solana binary doesn't contain v4 naming schema change. However the same is also when the edge binary is used: |
Right, this was my finding as well (ran on |
|
what bin you use is irrelevant. the rpc node does the stringification. we'll bp to v3.1 once this bakes for a bit |
steviez
left a comment
There was a problem hiding this comment.
the rpc node does the stringification
Gotcha + confirmed by restarting my node with RPC:
$ solana validators -u localhost
...
Stake By Version:
4.1.0-alpha.0 - 2 current validators ( 0.03%)
4.0.0 - 4 current validators ( 0.12%) 1 delinquent validators ( 0.00%)
4.0.0-beta.0 - 1 current validators ( 0.01%)
3.1.10 - 3 current validators ( 0.04%)
...
We probably have a fixed width field in there to cleanup, but that can be handled separately so this LGTM
|
ah yeah must've only got the one from validator/gossip dumps ('cause there was a test for them 🫠) |
Problem
v4.0.0.alpha.0 bins emit the
Debugstring when passed the--versionflagSummary of Changes
fix the stupid, superfluous version!() macro for how v4::Version behaves
This is an automatic backport of pull request #10883 done by Mergify.