File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -1122,8 +1122,24 @@ func (cs *State) defaultDecideProposal(height int64, round int32) {
1122
1122
}
1123
1123
1124
1124
// cancel ctx for previous proposal block to ensure block putting/providing does not queues up
1125
- if cs .proposalCancel != nil {
1126
- cs .proposalCancel ()
1125
+ if cs .proposalCancel != nil { //nolint:staticcheck
1126
+ // FIXME(ismail): below commented out cancel tries to prevent block putting
1127
+ // and providing no to queue up endlessly.
1128
+ // But in a real network proposers should have enough time in between.
1129
+ // And even if not, queuing up to a problematic extent will take a lot of time:
1130
+ // Even on the Cosmos Hub the largest validator only proposes every 15 blocks.
1131
+ // With an average block time of roughly 7.5 seconds this means almost
1132
+ // two minutes between two different proposals by the same validator.
1133
+ // For other validators much more time passes in between.
1134
+ // In our case block interval times will likely be larger.
1135
+ // And independent of this DHT providing will be made faster:
1136
+ // - https://github.com/lazyledger/lazyledger-core/issues/395
1137
+ //
1138
+ // Furthermore, and independent of all of the above,
1139
+ // the provide timeout could still be larger than just the time between
1140
+ // two consecutive proposals.
1141
+ //
1142
+ // cs.proposalCancel()
1127
1143
}
1128
1144
cs .proposalCtx , cs .proposalCancel = context .WithCancel (context .TODO ())
1129
1145
go func (ctx context.Context ) {
You can’t perform that action at this time.
0 commit comments