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

Harden ripple api connectivity #906

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

peachbits
Copy link
Contributor

@peachbits peachbits commented Mar 14, 2025

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No

Dependencies

none

Description

none

Copy link
Contributor

@swansontec swansontec left a comment

Choose a reason for hiding this comment

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

One question.

@@ -87,22 +92,28 @@ export class RippleTools implements EdgeCurrencyTools {

async connectApi(walletId: string): Promise<void> {
if (Object.keys(this.rippleApiSubscribers).length === 0) {
this.rippleApiSubscribers[walletId] = true
Copy link
Contributor

Choose a reason for hiding this comment

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

I feel like this should be a Set instead of an object, but maybe that's out of scope for this PR.

await api.connect()
return api
})
const result: Client = await asyncWaterfall(funcs)
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we want to reset the promise / resolver here too?

@peachbits peachbits force-pushed the matthew/xrp-reconnect branch from 8a351e8 to 5233ae9 Compare March 21, 2025 15:37
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.

2 participants