Stop Mining Empty Blocks in Private Chain
Is there any way to stop mining empty blocks in private chain
Why would you want to stop mining empty blocks? If you do that, your chain will be stale
Producing empty blocks may increase the data size. Also it may increase the computation time of the transactions. Am i right ? @andriantolie
Producing empty blocks does increase the size of the block log on disk. However empty blocks are extremely small compared to the capacity of modern disks. A desktop PC generating empty blocks is likely to experience a hardware failure before filling a 2TB disk with empty blocks.
Transaction computation time is totally unaffected by the size of the block chain.
Thanks @jgiszczak . Is there any way to stop producing empty blocks. ?
If you load producer_api_plugin in your nodeos config.ini, it makes available the URL /v1/producer/pause, which you may access via curl or similar tools. cleos does not provide support for that API. To resume, use the URL /vi/producer/resume.
Thanks. It worked.
I know this issue is closed but can you give me more detailed explanation Please. Like how to use curl to pause the blockchain and then resume it.
@yashvadhvani , http://localhost:8888/v1/producer/pause /resume.