stacks-network / stacks-core

The Stacks blockchain implementation
https://docs.stacks.co
GNU General Public License v3.0
3.01k stars 671 forks source link

Feat: optimize mempool iteration by skipping last invocation #5219

Closed kantai closed 1 month ago

kantai commented 1 month ago

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.

blockstack-devops commented 3 weeks ago

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.