The mempool iteration is invoked by the stacks miner to iterate over a mempool. However, the loop exit condition (num_considered == 0) means that there's always an additional "empty" invocation after the mempool has been cleared. This change eliminates that by returning the reason that the iteration exited.
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
The mempool iteration is invoked by the stacks miner to iterate over a mempool. However, the loop exit condition (
num_considered == 0
) means that there's always an additional "empty" invocation after the mempool has been cleared. This change eliminates that by returning the reason that the iteration exited.