File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -264,11 +264,15 @@ async function backtrackNetworkAmendmentStatus(
264264 index < currentLedger ;
265265 index += 256
266266 ) {
267+ // Use api V1 instead of the default (V2) since we don't have the correct
268+ // LedgerResponseExpanded type for V2
269+ // TODO: change to V2 once the issue is fixed.
267270 const ledger : LedgerResponse = await client . request ( {
268271 command : 'ledger' ,
269272 transactions : true ,
270273 ledger_index : index ,
271274 expand : true ,
275+ api_version : 1 ,
272276 } )
273277
274278 await handleWsMessageLedgerEnableAmendments (
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ const AMENDMENT_VERSION_REGEX =
3939 / \| \[ (?< amendmentName > [ a - z A - Z 0 - 9 _ ] + ) \] [ ^ \n ] + \| (?< version > v [ 0 - 9 ] * \. [ 0 - 9 ] * \. [ 0 - 9 ] * | T B D ) * \| / u
4040
4141export const NETWORKS_HOSTS = new Map ( [
42- [ 'main' , 'ws ://s2.ripple. com:51233 ' ] ,
42+ [ 'main' , 'wss ://xrplcluster. com' ] ,
4343 [ 'test' , 'wss://s.altnet.rippletest.net:51233' ] ,
4444 [ 'dev' , 'wss://s.devnet.rippletest.net:51233' ] ,
4545] )
You can’t perform that action at this time.
0 commit comments