diff options
author | nanlour <tjuwrr@gmail.com> | 2024-04-01 14:13:06 +1100 |
---|---|---|
committer | glozow <gloriajzhao@gmail.com> | 2024-05-23 17:05:22 +0100 |
commit | bb46b90b2ec7c8a4955ed8c5711bbc128d803b76 (patch) | |
tree | 0c111822cc58c3377c04b87a3daf382fd5ccd93c | |
parent | bf5b6fc8a7c7e6c13520671bb7b2d4d1d110c2bb (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 8474d01c41..298755038c 100644 --- a/src/index/base.cpp +++ b/src/index/base.cpp @@ -165,9 +165,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)) { |