Skip to content

Commit

Permalink
fix(consensus): increase timeout for PutBlock
Browse files Browse the repository at this point in the history
  • Loading branch information
Wondertan committed May 31, 2021
1 parent 6efdf30 commit 8dc07ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion consensus/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -1122,7 +1122,7 @@ func (cs *State) defaultDecideProposal(height int64, round int32) {
// TODO(evan): don't hard code context and timeout
//
// longer timeouts result in block proposers failing to propose blocks in time.
ctx, cancel := context.WithTimeout(context.Background(), time.Millisecond*1500)
ctx, cancel := context.WithTimeout(context.Background(), time.Second*120)
defer cancel()
cs.Logger.Info("Putting Block to ipfs", "height", block.Height)
err = ipld.PutBlock(ctx, cs.dag, block, cs.croute)
Expand Down

0 comments on commit 8dc07ee

Please sign in to comment.