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

Fix rpc truncate leak #3941

Closed
zhangsoledad opened this issue Apr 17, 2023 · 0 comments · Fixed by #3948
Closed

Fix rpc truncate leak #3941

zhangsoledad opened this issue Apr 17, 2023 · 0 comments · Fixed by #3948
Assignees
Labels
t:bug Type: This doesn't seem right.

Comments

@zhangsoledad
Copy link
Member

zhangsoledad commented Apr 17, 2023

Bug Report

Current Behavior

https://github.com/nervosnetwork/ckb/tree/develop/rpc#method-truncate
The truncate rpc is often used when testing, but truncate now has a defect, it will read all the selected blocks into memory at once, when truncate a long chain will be a memory leak and crash

Expected Behavior

Truncate can be performed in segments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
t:bug Type: This doesn't seem right.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants