Skip to content

Commit

Permalink
Fix crash in BlockAssembler::addPackageTxs
Browse files Browse the repository at this point in the history
  • Loading branch information
codablock committed Mar 7, 2019
1 parent baf8b81 commit f44f09c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/miner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit f44f09c

Please sign in to comment.