Page MenuHomePhabricator

index: Improve robustness of coinstatsindex at restart
ClosedPublic

Authored by PiRK on May 17 2023, 14:38.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC4873f9fe9a55: index: Improve robustness of coinstatsindex at restart
Summary

This change lets the coinstatsindex fail loudly in case the internal muhash state differs from the last finalized output saved on disk, which would indicate that the muhash state somehow got out of sync. This should generally not happen since both are written to disk in a batch but core#24076 seems to indicate that the might still be an issue.

Note that the actual fix for the mentionned issue is not in this backport. It is in core#24138.

This is a backport of core#24133

Test Plan

ninja all check-all