diff options
author | nanlour <tjuwrr@gmail.com> | 2024-04-01 14:13:06 +1100 |
---|---|---|
committer | nanlour <tjuwrr@gmail.com> | 2024-04-01 14:13:06 +1100 |
commit | bbe82c116e72ca0638751e063bf564cd1fe5c4d5 (patch) | |
tree | 52f7243532d2ecd53a0f49c4d615eef1376a5a21 /src/index | |
parent | 61de64df6790077857faba84796bb874b59c5d15 (diff) |
Fix #29767, set m_synced = true after Commit()
Diffstat (limited to 'src/index')
-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 13d8ba5a01..a203ce4a9f 100644 --- a/src/index/base.cpp +++ b/src/index/base.cpp @@ -162,9 +162,9 @@ void BaseIndex::Sync() const CBlockIndex* pindex_next = WITH_LOCK(cs_main, return 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)) { |