-
Notifications
You must be signed in to change notification settings - Fork 714
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
feat: implements irn_batchFetchMessages
#4459
Conversation
waiting on WalletConnect/walletconnect-utils#170 to be merged/release so I can bump versions in this PR |
); | ||
return await fetchMessages; | ||
} catch (err) { | ||
this.relayer.events.emit(RELAYER_EVENTS.connection_stalled); |
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.
Is this the only possible cause for the error?
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.
pretty much yes, other failures e.g. in .relayer.request
are logged
Approved ✅ |
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.
LGTM
…walletconnect-monorepo into feat/batch_fetch_messages
Description
Implemented
irn_batchFetchMessages
that is called before subscribing to topics so we can sort all pending messages from the mailbox and avoid out of sync messages and improve consistency in handling when a peer comes online and receives bunch of mailbox messagesType of change
How has this been tested?
this test covers exactly this scenario https://github.com/WalletConnect/walletconnect-monorepo/blob/v2.0/packages/web3wallet/test/sign.spec.ts#L142
Checklist
Additional Information (Optional)
Please include any additional information that may be useful for the reviewer.