mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 21:12:48 +01:00
fix possible shutdown assertion with -reindex-shutdown
Credit @eklitzke for reproducing.
This commit is contained in:
parent
c997f88082
commit
ceaefdd5f3
@ -2087,7 +2087,7 @@ bool static FlushStateToDisk(const CChainParams& chainparams, CValidationState &
|
|||||||
nLastWrite = nNow;
|
nLastWrite = nNow;
|
||||||
}
|
}
|
||||||
// Flush best chain related state. This can only be done if the blocks / block index write was also done.
|
// Flush best chain related state. This can only be done if the blocks / block index write was also done.
|
||||||
if (fDoFullFlush) {
|
if (fDoFullFlush && !pcoinsTip->GetBestBlock().IsNull()) {
|
||||||
// Typical Coin structures on disk are around 48 bytes in size.
|
// Typical Coin structures on disk are around 48 bytes in size.
|
||||||
// Pushing a new one to the database can cause it to be written
|
// Pushing a new one to the database can cause it to be written
|
||||||
// twice (once in the log, and once in the tables). This is already
|
// twice (once in the log, and once in the tables). This is already
|
||||||
|
Loading…
Reference in New Issue
Block a user