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

[Chain] Keep hashAccumulators more up-to-date. #963

Merged
merged 1 commit into from
Sep 5, 2021

Commits on Jul 26, 2021

  1. [Chain] Keep hashAccumulators more up-to-date.

    Use hashAccumulators instead of re-hashing mapAccumulatorHashes, as sometimes the map
    is not used but the cached hash value it had is (e.g. constructing the
    CBlockIndex from a CBlockHeader).
    
    Update hashAccumulators on any calls to AddAccumulators.
    Copy it when copying mapBlockIndex.
    Finally, copy it on loading from the diskindex--I believe this is
    the cause of some indexes (particularly orphans) having inconsistent hashes.
    
    Fixes Veil-Project#942.
    Zannick committed Jul 26, 2021
    Configuration menu
    Copy the full SHA
    a7941b8 View commit details
    Browse the repository at this point in the history