HomePhabricator

Automatically reorganize at startup to best known block
4fea06db2510Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Automatically reorganize at startup to best known block

Given that the block tree database (chain.dat) and the active chain
database (coins.dat) are entirely separate now, it becomes legal to
swap one with another instance without affecting the other.

This commit introduces a check in the startup code that detects the
presence of a better chain in chain.dat that has not been activated
yet, and does so efficiently (in batch, while reusing the blk???.dat
files).

Details

Provenance
Pieter Wuille <pieter.wuille@gmail.com>Authored on Aug 10 2012, 13:13
schancelPushed on Jan 5 2018, 21:58
schancelPushed on Jan 5 2018, 21:39
schancelPushed on Jan 5 2018, 21:17
Parents
rSTAGING13c51f20f619: Direct CCoins references
Branches
Unknown
Tags
Unknown

Event Timeline

Pieter Wuille <pieter.wuille@gmail.com> committed rSTAGING4fea06db2510: Automatically reorganize at startup to best known block (authored by Pieter Wuille <pieter.wuille@gmail.com>).Oct 20 2012, 21:08