litecoin-project / litecoin

Litecoin source tree
http://www.litecoin.org
MIT License
4.35k stars 3.03k forks source link

Support ReplayBlocks to prevent UTXO cache inconsistencies after an interrupted flush #935

Open DavidBurkett opened 8 months ago

DavidBurkett commented 8 months ago

RollForwardBlock, which is called to correct node state inconsistencies while loading Litecoin Core after an interrupted db flush, does not update the MWEB UTXO cache. https://github.com/litecoin-project/litecoin/blob/master/src/validation.cpp#L4471-L4479