4

How can I slow down the blocks produced in a local test environment or pause the processing of transactions and diagnose the state of the blockchain? I would like to really slow it down, instead of a block produced every halh a second, maybe once every 2 minutes.

I suspect it has to do with the genesis.json settings but I'm not sure.

2

You can pause and resume block production on your node through the corresponding HTTP API calls. The documentation is here:

https://developers.eos.io/eosio-nodeos/reference

To enable the pause/resume calls on your node you have to:

  1. Add these two plugins to your config.ini file:

    plugin = eosio::producer_api_plugin
    plugin = eosio::http_plugin
    
  2. Use these commands to actually pause and resume block production on your node:

    curl -XPOST http://127.0.0.1:8888/v1/producer/pause
    curl -XPOST http://127.0.0.1:8888/v1/producer/resume
    

PS: unsure at this time on how to slow down block production.

| improve this answer | |
  • Able to submitted a transaction even when the block production is paused. Is it something odd ? – sai charan mamidi Aug 29 '18 at 10:19
  • 1
    Like @AmiHeines said: please start a new question, if you want detailed and serious answers. – TeeAttack42 Aug 29 '18 at 11:42
2

I haven't tried changing this, but the block time is set here.

const static int      block_interval_ms = 500;
| improve this answer | |

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.