From 0fcceefe22532dc6389a95d2e058599e9496003b Mon Sep 17 00:00:00 2001 From: nanlour Date: Mon, 1 Apr 2024 14:13:06 +1100 Subject: [PATCH] Fix #29767, set m_synced = true after Commit() Github-Pull: #29776 Rebased-From: bbe82c116e72ca0638751e063bf564cd1fe5c4d5 --- src/index/base.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index/base.cpp b/src/index/base.cpp index bcfe7215bea..af7a80392d8 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)) {