File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -1956,13 +1956,14 @@ func (cs *State) finalizeCommit(height int64) {
1956
1956
cs .propagator .SetProposer (proposer .PubKey )
1957
1957
}
1958
1958
1959
+ // (TODO: enable after investigating the issues happening because of it)
1959
1960
// build the block pre-emptively if we're the proposer and the timeout commit is higher than 1 s.
1960
- tc := cs .state .TimeoutCommit
1961
- if tc > blockBuildingTime && cs .privValidatorPubKey != nil {
1962
- if address := cs .privValidatorPubKey .Address (); cs .Validators .HasAddress (address ) && cs .isProposer (address ) {
1963
- go cs .buildNextBlock ()
1964
- }
1965
- }
1961
+ // tc := cs.state.TimeoutCommit
1962
+ // if tc > blockBuildingTime && cs.privValidatorPubKey != nil {
1963
+ // if address := cs.privValidatorPubKey.Address(); cs.Validators.HasAddress(address) && cs.isProposer(address) {
1964
+ // go cs.buildNextBlock()
1965
+ // }
1966
+ // }
1966
1967
// By here,
1967
1968
// * cs.Height has been increment to height+1
1968
1969
// * cs.Step is now cstypes.RoundStepNewHeight
You can’t perform that action at this time.
0 commit comments