Skip to content

Conversation

morcos
Copy link
Contributor

@morcos morcos commented Nov 3, 2015

This builds off the score index added in #6898 and uses it to caculate the set of txin hashes that are most likely to be needed in upcoming blocks. Then when FlushStateToDisk writes the cache from pcoinsTip to the database, it'll leave the coins corresponding to these hashes in the cache.

The score index is meant to represent the order of priority for being included in a block for miners.  Initially this is set to the transactions fee rate.
@morcos
Copy link
Contributor Author

morcos commented Nov 4, 2015

oops. bug fix pushed.
EDIT: nm, I just confused myself.

I still haven't been able to demonstrate that this works as expected.
It doesn't seem that populating the cache or checking it is too computationally expensive.
However it doesn't seem to lead to much of a performance boost, so I need to do more benchmarking.

@morcos
Copy link
Contributor Author

morcos commented Feb 4, 2016

Closing for now...

@morcos morcos closed this Feb 4, 2016
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants