How can I set my miner to mine a specific block? like: Block: 496705

I have tried looking in ccminer options for that it looks like there is no option like that.

  • That's an odd thing to want to do. Can you explain why you want to do that? It might help people find the best way to help you out!
    – Cort Ammon
    Jan 1 '18 at 18:46

Mining software generally do not work like that. They don't have any idea of what is in the Bitcoin blockchain nor know how to construct a block (i.e. selecting transactions). Rather these mining software must connect to a server that will give it the pieces for the next block that the server wants the mining hardware to solve. So in order to mine at a specific block height, you must connect to and configure a server which provides the block data for the block that you want.

The easiest way to do this would be to use Bitcoin Core and reset its blockchain at a certain block height. To do so, you would use the invalidateblock command so that the blockchain's tip is the block prior to the height that you want to mine at. Then just point your mining software at Bitcoin Core and it will work on mining that next block which you want.

  • Thanks, My problem is that I have a stuck transaction for over a month and I want to release it :\
    – Assaf Sela
    Jan 1 '18 at 21:34
  • Unless you have a significant amount of hashrate, you won't be able to mine a block. Furthermore, it does not help you to mine at a certain block height. Please read bitcoin.stackexchange.com/questions/9046/… for what you can do about "stuck" transactions.
    – Andrew Chow
    Jan 1 '18 at 21:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.