-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
neorpc: change peer port to int type (fixes #2910) #2914
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2914 +/- ##
==========================================
+ Coverage 85.05% 85.12% +0.06%
==========================================
Files 329 329
Lines 42549 42580 +31
==========================================
+ Hits 36191 36245 +54
+ Misses 4894 4865 -29
- Partials 1464 1470 +6
... and 5 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This technically breaks compatibility for us, so
- It's for 0.102.0 (but we're very likely to skip 0.101.1 anyway)
- There is a question about old servers support. On one hand it seems to be a rarely used API, on the other we don't know for sure. We can add some compatibility glue for it like we did in previous cases (9862b40 or c465b18). @AnnaShaleva, what do you think?
compatibility with what other part? If we're talking NeoNodes then arguably it was not compatible to begin with. As far as I looked in the C# code this type has not changed in the last 4 years. |
Compatibility with NeoGo nodes. Old clients couldn't connect to new servers, that we can explain (upgrade!), but new clients won't be able to interact with old nodes, that's more problematic. Custom |
As for me, I extremely like the way how it is done in #2448. It looks ugly in the code, yes, but at the same time it's important for us to support the compatibility with the old nodes, otherwise new client's code just won't work with them. We need to add a custom umarshaler as @roman-khimov wrote and add a note for its deprecation/removal in future releases for better user experience. |
I did my approach before seeing Anna's link to #2448. Let me know if this works, otherwise I'll try to digest that PR and adjust where necessary. |
#2448 is pretty complex because it was important to exactly check version there. Here a simple try this/try that approach should be OK. |
Is there some doc describing all tools and rules I need to configure my IDE with? I'm willing to try and solve my own issue when time allows, but things like linting and style errors not reported by my IDE get on my nerves |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An entry in ROADMAP.md
is also needed (we usually schedule things like this 6 months away from the release the change appears in).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you, please, squash the commits?
Will do, I was waiting to see if there was any feedback left before doing so. |
fwiw; the lint failures are not in code that I touched |
@ixje, yeah I've seen those in another PR as well, looks like a linter upgrade (to be fixed of course). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks OK, we'll merge it when we're closer to 0.102.0.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A nice one, thank you for your contribution!
Problem
#2910 type mismatch
Solution
Change type from string to int.