Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dummyapp: custom block time #383

Closed
Wondertan opened this issue Jun 1, 2021 · 4 comments
Closed

dummyapp: custom block time #383

Wondertan opened this issue Jun 1, 2021 · 4 comments
Assignees

Comments

@Wondertan
Copy link
Member

Wondertan commented Jun 1, 2021

Currently, Dummyapp provides a sleep parameter that freezes block production for the specified period. However, long sleep >10sec causes consensus timeouts leading to endless round restart preventing chain growth, while customizable block time is very helpful in testing block providing and retrievability.

@tac0turtle
Copy link
Collaborator

This can be done by using the values in the config.toml around timeouts for consensus rounds. Unfortunately, these are local configurations instead of network wide. Like most things in tendermint, we have an issue for this....

@liamsi liamsi self-assigned this Jun 2, 2021
@liamsi
Copy link
Member

liamsi commented Jun 2, 2021

https://github.com/lazyledger/lazyledger-core/blob/40acb17283ebfe1c49b804a786464b93c2213a97/config/toml.go#L362-L377

Also ref: #87

@liamsi
Copy link
Member

liamsi commented Jun 2, 2021

@Wondertan I just confirmed that after editing ~/.tendermint/config/config.toml and modfying only the propose timeout to eg.:

timeout-propose = "12s"
 ./dummyapp run --dummy.sleep 10s --dummy.txs 10

works just fine:

I[2021-06-02|09:57:13.194] Executed block                               module=state height=1 validTxs=20 invalidTxs=0
I[2021-06-02|09:57:13.194] Committed state                              module=state height=1 txs=20 appHash=2800000000000000
I[2021-06-02|09:57:24.388] Executed block                               module=state height=2 validTxs=20 invalidTxs=0
I[2021-06-02|09:57:24.389] Committed state                              module=state height=2 txs=20 appHash=5000000000000000

Feel free to close the issue if this unblocks you. Otherwise, I think I need more details on how I can help.

@Wondertan
Copy link
Member Author

Thanks! This should be enough for my goals

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants