Skip to content
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

Prevent getFee from returning NaN from Reporting Mode #1401

Merged
merged 1 commit into from
May 10, 2021
Merged

Conversation

intelliot
Copy link
Collaborator

When using a rippled server in Reporting Mode, the server_info response does not have a load_factor property.

https://xrpl.org/rippled-server-modes.html#reporting-mode

XRPLF/rippled#3812

Now, when load_factor is missing, we default to a load_factor of 1.

Fix #1398

Thanks to @LynchEntrostat @anhcao142

When using a rippled server in Reporting Mode, the server_info response does not have a load_factor property.

https://xrpl.org/rippled-server-modes.html#reporting-mode

XRPLF/rippled#3812

Now, when load_factor is missing, we default to a load_factor of 1.

Fix #1398
Copy link
Collaborator

@ximinez ximinez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Calculation in getFee sometimes returns NaN when using public (s1, s2) ripple servers
3 participants