You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The "Peer Crawler" special API method reports the port of peers as either an integer or a string depending on if the connection is inbound/outbound. This was probably an oversight in the original PR, and the field should be consistently the same type.
Steps to Reproduce
Call the peer crawler on a server that has both incoming and outgoing peers and check the response.
Expected Result
The port fields in the overlay.active[] array members should all be the same type, probably Number. Port numbers should always fit in any reasonable primitive that JSON numbers can be deserialized into.
Solution
Always make port a Number type. Note, this is (kind of) an API change, but to a special peer-port-API method and not to the standard API, so API versioning concerns do not apply.
Issue Description
The "Peer Crawler" special API method reports the
port
of peers as either an integer or a string depending on if the connection is inbound/outbound. This was probably an oversight in the original PR, and the field should be consistently the same type.Steps to Reproduce
Call the peer crawler on a server that has both incoming and outgoing peers and check the response.
Expected Result
The
port
fields in theoverlay.active[]
array members should all be the same type, probablyNumber
. Port numbers should always fit in any reasonable primitive that JSON numbers can be deserialized into.Solution
Always make
port
a Number type. Note, this is (kind of) an API change, but to a special peer-port-API method and not to the standard API, so API versioning concerns do not apply.Environment
rippled
1.2.1 through 2.1.xRelated issues
The text was updated successfully, but these errors were encountered: