HomePhabricator

Limit the impact of reorganisations on the database
d68dcf741e08Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Limit the impact of reorganisations on the database

Sometimes a new block arrives in a new chain that was already the
best valid one, but wasn't marked that way. This happens for example
when network rules change to recover after a fork.

In this case, it is not necessary to do the entire reorganisation
inside a single db commit. These can become huge, and exceed the
objects/lockers limits in bdb. This patch limits the blocks the
actual reorganisation is applied to, and adds the next blocks
afterwards in separate db transactions.

Details

Provenance
Pieter Wuille <pieter.wuille@gmail.com>Authored on Mar 10 2012, 22:04
schancelPushed on Jan 5 2018, 21:58
schancelPushed on Jan 5 2018, 21:39
schancelPushed on Jan 5 2018, 21:17
Parents
rSTAGING336ba312a6dd: Merge pull request #926 from gmaxwell/master
Branches
Unknown
Tags
Unknown

Event Timeline

Pieter Wuille <pieter.wuille@gmail.com> committed rSTAGINGd68dcf741e08: Limit the impact of reorganisations on the database (authored by Pieter Wuille <pieter.wuille@gmail.com>).Mar 12 2012, 19:31