Page MenuHomePhabricator

init: Stop indexes on shutdown after ChainStateFlushed callback.
ClosedPublic

Authored by PiRK on Dec 11 2020, 17:09.

Details

Summary

Currently, the latest index state may not be committed to disk on shutdown.
The state is committed on ChainStateFlushed callbacks and the current init order unregisters the indexes as validation interfaces before the final ChainStateFlushed callback is called on them.
This was causing the txindexing progress to have fallen behind to its last random checkpoint the next time bitcoind was started.

This is a backport of Core PR17897

Test Plan

ninja all check-all

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable