Skip to content
Cosmopediaby Unity Nodes
DiscussionsCosmos-SDKTurning `create_empty_blocks` to false has no effectForum ↗

Turning `create_empty_blocks` to false has no effect

Cosmos-SDK11 posts2,242 views3 likesLast activity Sep 2018
VA
vaibhavchellaniOP
Aug 2018

Even if we turn the create_empty_blocks param to false there are blocks being created at the rate of 1block /sec , we dont want to have empty blocks . I came across https://github.com/tendermint/tendermint/issues/1995 , how to stop app hash from being updated every block would be the second question .
I want to create blocks in 5 mins , can you suggest a way ?

EB
ebuchman
Aug 2018 1

What app are you using? If it’s something built with the Cosmos SDK, it’s currently not possible, unfortunately. Hopefully will be soon.

KW
kwunyeung
Aug 2018 1

Really hope this can be back soon.

VA
vaibhavchellani
Sep 2018

Hey ! yeah i was first trying with an app i made using the sdk , now im editing config.toml in tendermint , when i set the empty block flag to false , it doesnt not create new blocks , but weirdly when i send a transaction 2 blocks are created consecutively , height is incremented by 2 . Why is that happening @ebuchman?

ZA
zaki
Sep 2018

no_empty_blocks is not currently compatible with the SDK.

VA
vaibhavchellani
Sep 2018

yes you mentioned that earlier , hence i havent mentioned cosmos-sdk anywhere in the above message , i tried sending a transaction via “brodcast_tx_commit” to the tendermint core directly which resulted in formation of 2 blocks one with transaction data and another empty . Which brought me to the question why is that so , does tendermint core also not support empty blocks properly ?

ZA
zaki
Sep 2018 1

You would expect 2 blocks.

The 1st block as the transaction.

The 2nd block has the state update

VA
vaibhavchellani
Sep 2018
zaki:

The 1st block as the transaction.

thank you for your response ! ’

  1. Can’t we combine those 2 ?
  2. State cant be updated in the same block which contains the transaction ?
  3. State update is a block without transaction (Empty block) which should not have been created because we turned it off , right ?

Am I missing something here ?

ZA
zaki
Sep 2018

This is pretty fundemental to how tendermint works

EG
egeon
Sep 2018

Thank you for clarification, @zaki. I also use Tendermint with create_empty_blocks=false and was wondering, why I have 2 blocks per tx.

ZA
zaki
Sep 2018

There is a great discussion of related issues going on here.

github.com/tendermint/tendermint

Issue: Run CheckTx before voting on blocks

opened by ebuchman on 2018-09-12
closed by ebuchman on 2018-09-21
Follow up from #2175
Consider a ConsensusParam that determines if we run CheckTx on proposal blocks before voting for them. This would...
abci consensus proposal protocol
← Back to Discussions