mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-29 14:59:39 -04:00
Fix #29767, set m_synced = true after Commit()
This commit is contained in:
parent
61de64df67
commit
bbe82c116e
1 changed files with 1 additions and 1 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue