stacks-core
stacks-core copied to clipboard
feat: Allow `stacks-inspect try-mine` to mine multiple blocks
Description
Add--max-blocks <x> argument to stacks-inspect try-mine to allow it to mine either until the mempool is empty or x blocks have been mined
Applicable issues
- fixes #5586
- requires #5608
Additional info (benefits, drawbacks, caveats)
Checklist
- [ ] Test coverage for new or modified code paths
- [ ] Changelog is updated
- [ ] Required documentation changes (e.g.,
docs/rpc/openapi.yamlandrpc-endpoints.mdfor v2 endpoints,event-dispatcher.mdfor new events) - [ ] New clarity functions have corresponding PR in
clarity-benchmarkingrepo - [ ] New integration test(s) added to
bitcoin-tests.yml
Trying this out with --max-blocks 3, I see it only mining three blocks with just the tenure extend transaction.
I took a closer look at this and it's filling the blocks for me, but mining the same transactions repeatedly. Moving this back to draft