Skip to content

Commit 77fbe05

Browse files
move sync check higher up
Signed-off-by: Pasta <[email protected]>
1 parent 5457a2e commit 77fbe05

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/llmq/quorums_instantsend.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -953,6 +953,10 @@ void CInstantSendManager::ProcessNewTransaction(const CTransactionRef& tx, const
953953
return;
954954
}
955955

956+
if (!masternodeSync.IsBlockchainSynced()) {
957+
return;
958+
}
959+
956960
if (tx->IsCoinBase() || tx->vin.empty()) {
957961
// coinbase and TXs with no inputs can't be locked
958962
return;
@@ -969,10 +973,6 @@ void CInstantSendManager::ProcessNewTransaction(const CTransactionRef& tx, const
969973
}
970974
}
971975

972-
if (!masternodeSync.IsBlockchainSynced()) {
973-
return;
974-
}
975-
976976
bool chainlocked = pindex && chainLocksHandler->HasChainLock(pindex->nHeight, pindex->GetBlockHash());
977977
if (islockHash.IsNull() && !chainlocked) {
978978
ProcessTx(*tx, Params().GetConsensus());

0 commit comments

Comments
 (0)