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

Do not queue too many blocks between wallet and node #864

Closed
wants to merge 1 commit into from

Conversation

braydonf
Copy link
Contributor

It's possible that the queue of blocks between node and wallet can grow too large and lead to a variety of memory issues.

@braydonf
Copy link
Contributor Author

braydonf commented Oct 2, 2019

This may be something we can revisit later in consideration of how the wallet + node interact. It will be better to subscribe to a notification of blocks, and then request the block. This way it's not possible for the queue to build in memory.

@braydonf braydonf closed this Oct 2, 2019
@braydonf
Copy link
Contributor Author

braydonf commented Oct 2, 2019

The behavior may be reproduced by severely limiting threads with UV_THREADPOOL_SIZE=1, would need to confirm this further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
memory Memory issues wallet Wallet related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant