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

Wallet TX history memory and CPU exhaustion #559

Open
braydonf opened this issue Aug 6, 2018 · 5 comments
Open

Wallet TX history memory and CPU exhaustion #559

braydonf opened this issue Aug 6, 2018 · 5 comments
Labels
http memory Memory issues rpc stability / efficiency Denial of service, better resource usage wallet Wallet related
Milestone

Comments

@braydonf
Copy link
Contributor

braydonf commented Aug 6, 2018

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:

@bucko13
Copy link
Contributor

bucko13 commented Aug 6, 2018

probably don't want to update the RPC for anything that's already in core so for RPC support, probably a new command. listtransactionhistory?

@braydonf
Copy link
Contributor Author

braydonf commented Aug 7, 2018

Yeah a new command, listhistory, could work. It could search by timestamp and txid and listing in ascending and descending order.

@tynes
Copy link
Member

tynes commented Aug 22, 2018

@braydonf Wondering the status on this and if there is anything that I can do to help

@braydonf
Copy link
Contributor Author

braydonf commented Aug 22, 2018

The PR has status details at #605

@pinheadmz pinheadmz added enhancement Improving a current feature has PR Issue is addressed with a pull request labels Jan 21, 2019
@braydonf braydonf added wallet Wallet related stability / efficiency Denial of service, better resource usage labels Feb 6, 2019
@braydonf braydonf added the memory Memory issues label Apr 11, 2019
@braydonf braydonf changed the title Wallet TXDB database pagination Wallet TX history memory and CPU exhaustion May 31, 2019
@braydonf
Copy link
Contributor Author

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.

@braydonf braydonf removed has PR Issue is addressed with a pull request enhancement Improving a current feature labels Jan 14, 2020
@braydonf braydonf added this to the v3.0.0 milestone Jan 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
http memory Memory issues rpc stability / efficiency Denial of service, better resource usage wallet Wallet related
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants