-1

I am creating a new altcoin and i cant seem to figure out how to disable mining functionality with wallets using the debug console window.

I am trying to mine all the coins myself, is there way to restrict all mining to me or specific IP addresses.

I am using forking litecoin to create my altcoin.

Any advice or help with code is much apppreciated and helpful

1 Answer 1

1

I am creating a new altcoin and i cant seem to figure out how to disable mining functionality with wallets using the debug console window.

Remove the generate and generatetoaddress commands.

I am trying to mine all the coins myself, is there way to restrict all mining to me or specific IP addresses.

Unless you modify blocks to include IP address information, no, there is not. You could restrict coinbase transactions to have only a specific output script which belongs to you so that blocks that have coinbase transactions where the coins go to another output script are considered invalid. However you will need to modify the mining code to use a fixed script instead of generating a new one for each block.

2
  • I did remove generate and generatetoaddress, it disables wallet mining, but i cannot generate blocks myself using litecoin-cli. Anyworkarounds?
    – pbu
    May 1, 2018 at 20:17
  • 1
    Don't remove generate and generatetoaddress for yourself. Remove it for the publicly available version of your coin.
    – Andrew Chow
    May 1, 2018 at 20:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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