Skip to content

configurable params, other fixes#192

Merged
jaekwon merged 9 commits intomasterfrom
params
Mar 6, 2016
Merged

configurable params, other fixes#192
jaekwon merged 9 commits intomasterfrom
params

Conversation

@ebuchman
Copy link
Contributor

@ebuchman ebuchman commented Mar 5, 2016

Changes and fixes resulting from the benchmarking effort (https://github.com/tendermint/network_testing)

  • Now configurable from config.yaml: consensus timeouts, block size (including -1 to ignore mempool txs when proposing), recheck tx, mempool broadcasting
  • cswal fixes and light mode (doesn't record block parts). closes ConsensusState.OnStop() must wait for cswal to close #186 and move cswal file to data dir #184
  • unsafe_set_config rpc command. used especially to toggle block_size so blocks don't include txs until we want them to. note not all config values can be changed this way depending on if they are assigned to variables (maybe we change this on a case by case basis. currently consensus timeouts are not updateable but maybe we want them to be)
  • fix bug where peer round states were able to decrease (we don't gaurantee order on consensus message broadcasts)


func (cs *ConsensusState) OnStop() {
cs.QuitService.OnStop()
if cs.wal != nil && cs.IsRunning() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cs.IsRunning() should always be true, based on QuiteServe/BaseService logic, no?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the cs might not be running, eg during fast sync

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah right.

jaekwon added a commit that referenced this pull request Mar 6, 2016
configurable params, other fixes
@jaekwon jaekwon merged commit fd85d0e into master Mar 6, 2016
@ebuchman ebuchman deleted the params branch March 15, 2016 02:14
ebuchman added a commit that referenced this pull request Jun 20, 2018
troian pushed a commit to akash-network/tendermint that referenced this pull request Mar 11, 2023
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

Successfully merging this pull request may close these issues.

ConsensusState.OnStop() must wait for cswal to close

2 participants