Skip to content

Commit

Permalink
Fix bitcoin#29767, set m_synced = true after Commit()
Browse files Browse the repository at this point in the history
Github-Pull: bitcoin#29776
Rebased-From: bbe82c1
  • Loading branch information
nanlour authored and fanquake committed Apr 26, 2024
1 parent ae9a2ed commit 0fcceef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index/base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,9 @@ void BaseIndex::ThreadSync()
const CBlockIndex* pindex_next = NextSyncBlock(pindex, m_chainstate->m_chain);
if (!pindex_next) {
SetBestBlockIndex(pindex);
m_synced = true;
// No need to handle errors in Commit. See rationale above.
Commit();
m_synced = true;
break;
}
if (pindex_next->pprev != pindex && !Rewind(pindex, pindex_next->pprev)) {
Expand Down

0 comments on commit 0fcceef

Please sign in to comment.