Skip to content

Commit

Permalink
Update validation.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
jagdeep sidhu committed Sep 24, 2022
1 parent 71f91ea commit 2fcdbac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/validation.cpp
Expand Up @@ -3794,7 +3794,7 @@ void Chainstate::ResetBlockFailureFlags(CBlockIndex *pindex) {
AssertLockHeld(cs_main);
// SYSCOIN
if ( !pindex) {
if (m_chainman.m_best_invalid && m_chainman.m_best_invalid->GetAncestor(m_chain.Height()) == m_chain.Tip()) {
if (llmq::AreChainLocksEnabled() && m_chainman.m_best_invalid && m_chainman.m_best_invalid->GetAncestor(m_chain.Height()) == m_chain.Tip()) {
LogPrintf("%s: the best known invalid block (%s) is ahead of our tip, reconsidering\n",
__func__, m_chainman.m_best_invalid->GetBlockHash().ToString());
pindex = m_chainman.m_best_invalid;
Expand Down

0 comments on commit 2fcdbac

Please sign in to comment.