-
Notifications
You must be signed in to change notification settings - Fork 39
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(wallet-lib): eventemitter memory leak #56
Conversation
057021d
to
98db394
Compare
This reverts commit 677536a.
Interesting why this one doesn't work https://github.com/dashevo/platform/blob/7d55efa825d6b89f3c101c856d2253ef9a551e7a/packages/wallet-lib/src/transport/AbstractTransport.js#L15 Do we still need it? |
@shumkov this one is attached to the DAPIClientTransport. I guess it needs to be there. |
@markin-io We've added that one actually to solve the same thing. Maybe mistakenly? Should we remove it? Also, you solution doesn't create new listeners for the same transactions. But you'll get warning if you will have more than 11 transaction to get in the block, right? |
@shumkov after the removal of the As of the warning for more than 11 transactions, this is true. I will think of some kind of a queue to solve this. |
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.
Good catch! 👍
Issue being fixed or feature implemented
The wallet was hooking on lots of redundant event listeners during the processing raw transactions from the stream.
What was done?
Remove event listeners right after they'd became not needed
How Has This Been Tested?
Breaking Changes
Checklist:
For repository code-owners and collaborators only