Fix crash in BlockAssembler::addPackageTxs

This commit is contained in:
Alexander Block 2019-03-01 15:29:49 +01:00
parent baf8b81c4a
commit f44f09ca04

View File

@ -454,7 +454,8 @@ void BlockAssembler::addPackageTxs(int &nPackagesSelected, int &nDescendantsUpda
continue;
}
if (!llmq::chainLocksHandler->IsTxSafeForMining(mi->GetTx().GetHash())) {
if (mi != mempool.mapTx.get<ancestor_score>().end() &&
!llmq::chainLocksHandler->IsTxSafeForMining(mi->GetTx().GetHash())) {
++mi;
continue;
}