HomePhabricator

Fix rebuild-chainstate feature and improve its performance
afc32c5eeadaUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Fix rebuild-chainstate feature and improve its performance

Previous refactorings broke the ability to rebuild the chainstate by deleting the chainstate
directory, resulting in an incorrect "Incorrect or no genesis block found" error message. Fix
that.

Also, improve the performance of ActivateBestBlockStep by using the skiplist to only discover
a few potential blocks to connect at a time, instead of all blocks forever - as we likely bail
out after connecting a single one anyway.

Details

Provenance
Pieter Wuille <pieter.wuille@gmail.com>Authored on Oct 10 2014, 20:13
deadalnixPushed on May 14 2017, 22:04
Parents
rABC16d5194165c8: Skip reindexed blocks individually
Branches
Unknown
Tags
Unknown

Event Timeline

Pieter Wuille <pieter.wuille@gmail.com> committed rABCafc32c5eeada: Fix rebuild-chainstate feature and improve its performance (authored by Pieter Wuille <pieter.wuille@gmail.com>).Oct 14 2014, 22:42