Skip to content

Commit bbe82c1

Browse files
committed
Fix #29767, set m_synced = true after Commit()
1 parent 61de64d commit bbe82c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index/base.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,9 @@ void BaseIndex::Sync()
162162
const CBlockIndex* pindex_next = WITH_LOCK(cs_main, return NextSyncBlock(pindex, m_chainstate->m_chain));
163163
if (!pindex_next) {
164164
SetBestBlockIndex(pindex);
165-
m_synced = true;
166165
// No need to handle errors in Commit. See rationale above.
167166
Commit();
167+
m_synced = true;
168168
break;
169169
}
170170
if (pindex_next->pprev != pindex && !Rewind(pindex, pindex_next->pprev)) {

0 commit comments

Comments
 (0)