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

Store blockchain seqs and unspents in boltdb #352

Closed
iketheadore opened this issue Jun 12, 2017 · 1 comment
Closed

Store blockchain seqs and unspents in boltdb #352

iketheadore opened this issue Jun 12, 2017 · 1 comment

Comments

@iketheadore
Copy link
Member

Description

For now, we have block tree struct to store all blocks in db, each depth of the tree may have multiple blocks, we use consensus algorithm to determine the path and form the blockchain.

Each time we start the node, will go through the block tree and get the blockchain head and unspent pool, which is a waste of time. So we now decide to store unspents and block head in boltdb, which will speed up our wallet opening speed.

@iketheadore
Copy link
Member Author

Fixed in #363

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants