Browse Source

cmd: --consensus.no_empty_blocks

pull/591/head
Ethan Buchman 7 years ago
parent
commit
e9a2389300
2 changed files with 4 additions and 2 deletions
  1. +3
    -0
      cmd/tendermint/commands/run_node.go
  2. +1
    -2
      config/config.go

+ 3
- 0
cmd/tendermint/commands/run_node.go View File

@ -45,6 +45,9 @@ func AddNodeFlags(cmd *cobra.Command) {
cmd.Flags().String("p2p.seeds", config.P2P.Seeds, "Comma delimited host:port seed nodes")
cmd.Flags().Bool("p2p.skip_upnp", config.P2P.SkipUPNP, "Skip UPNP configuration")
cmd.Flags().Bool("p2p.pex", config.P2P.PexReactor, "Enable Peer-Exchange (dev feature)")
// consensus flags
cmd.Flags().Bool("consensus.no_empty_blocks", config.Consensus.NoEmptyBlocks, "Prevent empty blocks from being proposed by correct processes")
}
// Users wishing to:


+ 1
- 2
config/config.go View File

@ -359,7 +359,7 @@ func DefaultConsensusConfig() *ConsensusConfig {
SkipTimeoutCommit: false,
MaxBlockSizeTxs: 10000,
MaxBlockSizeBytes: 1, // TODO
NoEmptyBlocks: true,
NoEmptyBlocks: false,
BlockPartSize: types.DefaultBlockPartSize, // TODO: we shouldnt be importing types
PeerGossipSleepDuration: 100,
PeerQueryMaj23SleepDuration: 2000,
@ -377,7 +377,6 @@ func TestConsensusConfig() *ConsensusConfig {
config.TimeoutPrecommitDelta = 1
config.TimeoutCommit = 10
config.SkipTimeoutCommit = true
config.NoEmptyBlocks = false
return config
}


Loading…
Cancel
Save