diff options
author | nanlour <tjuwrr@gmail.com> | 2024-04-01 14:13:06 +1100 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2024-04-26 21:05:02 +0800 |
commit | 0fcceefe22532dc6389a95d2e058599e9496003b (patch) | |
tree | 22e24ca9459100a2a02b90d52373a6d13b3994bb | |
parent | ae9a2ed40a4f40bce822fb7cb47804c45e394e11 (diff) |
Fix #29767, set m_synced = true after Commit()
Github-Pull: #29776
Rebased-From: bbe82c116e72ca0638751e063bf564cd1fe5c4d5
-rw-r--r-- | src/index/base.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/index/base.cpp b/src/index/base.cpp index bcfe7215be..af7a80392d 100644 --- a/src/index/base.cpp +++ b/src/index/base.cpp @@ -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)) { |