stacks-core icon indicating copy to clipboard operation
stacks-core copied to clipboard

feat: Allow `stacks-inspect try-mine` to mine multiple blocks

Open jbencin opened this issue 1 year ago • 2 comments

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.yaml and rpc-endpoints.md for v2 endpoints, event-dispatcher.md for new events)
  • [ ] New clarity functions have corresponding PR in clarity-benchmarking repo
  • [ ] New integration test(s) added to bitcoin-tests.yml

jbencin avatar Jan 13 '25 22:01 jbencin

Trying this out with --max-blocks 3, I see it only mining three blocks with just the tenure extend transaction.

obycode avatar Jan 14 '25 20:01 obycode

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

jbencin avatar Jan 16 '25 17:01 jbencin