-
Notifications
You must be signed in to change notification settings - Fork 9
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
fix amendments backtracking #298
base: main
Are you sure you want to change the base?
Conversation
@@ -39,7 +39,7 @@ const AMENDMENT_VERSION_REGEX = | |||
/\| \[(?<amendmentName>[a-zA-Z0-9_]+)\][^\n]+\| (?<version>v[0-9]*\.[0-9]*\.[0-9]*|TBD) *\|/u | |||
|
|||
export const NETWORKS_HOSTS = new Map([ | |||
['main', 'ws://s2.ripple.com:51233'], | |||
['main', 'wss://xrplcluster.com'], |
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.
Why is this changed?
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.
We often got rate limit while looping and sending ledger
and tx
RPC to clio (not sure if it's because of the recent issue) to backtrack amendments. We can either change this to xrpl-cluster completely or use it as a backup.
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.
Has this been discussed with the Clio folks?
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.
RippledError(You are placing too much load on the server., {\"error\":\"slowDown\",\"error_code\":10,\"error_message\":\"You are placing too much load on the server.\",\"status\":\"error
This happens once in a while with Clio
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.
Just posted my question on their channel
@@ -264,11 +264,15 @@ async function backtrackNetworkAmendmentStatus( | |||
index < currentLedger; | |||
index += 256 | |||
) { | |||
// Use api V1 instead of the default (V2) since we don't have the correct | |||
// LedgerResponseExpanded type for V2 | |||
// TODO: change to V2 once the issue is fixed. |
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.
I recommend linking to the xrpl.js issue
High Level Overview of Change
There are 2 issues with amendment backtracking and status retrieval:
ledger
rpc for API v2 withtransactions
andexpand
enabled does not matchLedgerResponseExpanded
field on xrpl.js. Use v1 for now.Type of Change