Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/llmq/quorums_instantsend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1146,6 +1146,10 @@ void CInstantSendManager::UpdatedBlockTip(const CBlockIndex* pindexNew)

void CInstantSendManager::HandleFullyConfirmedBlock(const CBlockIndex* pindex)
{
if (!IsInstantSendEnabled()) {
return;
}

LOCK(cs);

auto& consensusParams = Params().GetConsensus();
Expand Down Expand Up @@ -1510,12 +1514,12 @@ void CInstantSendManager::WorkThreadMain()

bool IsInstantSendEnabled()
{
return sporkManager.IsSporkActive(SPORK_2_INSTANTSEND_ENABLED);
return !fReindex && !fImporting && sporkManager.IsSporkActive(SPORK_2_INSTANTSEND_ENABLED);
}

bool RejectConflictingBlocks()
{
return sporkManager.IsSporkActive(SPORK_3_INSTANTSEND_BLOCK_FILTERING);
return !fReindex && !fImporting && sporkManager.IsSporkActive(SPORK_3_INSTANTSEND_BLOCK_FILTERING);
}

} // namespace llmq
2 changes: 1 addition & 1 deletion src/validation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2386,7 +2386,7 @@ bool CChainState::ConnectBlock(const CBlock& block, CValidationState& state, CBl
REJECT_INVALID, "conflict-tx-lock");
}
}
} else {
} else if (!fReindex && !fImporting) {
LogPrintf("ConnectBlock(DASH): spork is off, skipping transaction locking checks\n");
}

Expand Down