mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 03:52:49 +01:00
merge bitcoin#25074: During sync, commit best block after indexing
This commit is contained in:
parent
e6867a35ce
commit
a86109a017
@ -168,7 +168,7 @@ void BaseIndex::ThreadSync()
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (last_locator_write_time + SYNC_LOCATOR_WRITE_INTERVAL < current_time) {
|
if (last_locator_write_time + SYNC_LOCATOR_WRITE_INTERVAL < current_time) {
|
||||||
SetBestBlockIndex(pindex);
|
SetBestBlockIndex(pindex->pprev);
|
||||||
last_locator_write_time = current_time;
|
last_locator_write_time = current_time;
|
||||||
// No need to handle errors in Commit. See rationale above.
|
// No need to handle errors in Commit. See rationale above.
|
||||||
Commit();
|
Commit();
|
||||||
|
Loading…
Reference in New Issue
Block a user