-
Notifications
You must be signed in to change notification settings - Fork 812
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
Wallet TX history memory and CPU exhaustion #559
Comments
probably don't want to update the RPC for anything that's already in core so for RPC support, probably a new command. |
Yeah a new command, |
@braydonf Wondering the status on this and if there is anything that I can do to help |
The PR has status details at #605 |
The solution for this is implemented at https://github.com/bcoin-org/bcoin/commits/wallet-pagination and should remain as it is currently until the topic is revisited. |
Versions
bcoin v1.0.2
Expected
Large history of transactions can be queried in smaller sets sequentially in pages with predictable sets of results in ascending and descending order, by time, and without requiring loading all transactions into memory (and crash and overload the process). Should be able support millions of transactions.
Actual
Some endpoints will return the entire history without options to limit or change the order and can exhaust memory. Other endpoints support querying by time; however, with unpredictable size of results without pagination. The time of the index is based on when the transactions was seen to a node, rather than block time that can be recovered from the chain.
Pull Request / Branch:
The text was updated successfully, but these errors were encountered: