When I create a NodeUpdate or NodeCreate transaction and set the proper endpoints with the proper ports, then serialize and deserialize the transaction, the endpoint ports are now different. ServiceEndpoint.fromProtobuf checks for the port to be 0 or 50111, then sets it to 50211 if so.
Steps to reproduce
Remove the check and overwriting of the port when deserializing the endpoints. 50111 is a valid port for gossip Endpoints.
Description
When I create a NodeUpdate or NodeCreate transaction and set the proper endpoints with the proper ports, then serialize and deserialize the transaction, the endpoint ports are now different. ServiceEndpoint.fromProtobuf checks for the port to be 0 or 50111, then sets it to 50211 if so.
Steps to reproduce
Remove the check and overwriting of the port when deserializing the endpoints. 50111 is a valid port for gossip Endpoints.
Additional context
No response
Hedera network
No response
Version
2.44.0
Operating system
None