Merge pull request #1008 from chaosma/chao-fix

make timeout to be 300 seconds
pull/1015/head
Eugene Kim 6 years ago committed by GitHub
commit 46756ec7a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      consensus/config.go

@ -4,15 +4,14 @@ import "time"
// timeout constant // timeout constant
const ( const (
receiveTimeout time.Duration = 5 * time.Second
// The duration of viewChangeTimeout; when a view change is initialized with v+1 // The duration of viewChangeTimeout; when a view change is initialized with v+1
// timeout will be equal to viewChangeDuration; if view change failed and start v+2 // timeout will be equal to viewChangeDuration; if view change failed and start v+2
// timeout will be 2*viewChangeDuration; timeout of view change v+n is n*viewChangeDuration // timeout will be 2*viewChangeDuration; timeout of view change v+n is n*viewChangeDuration
viewChangeDuration time.Duration = 30 * time.Second viewChangeDuration time.Duration = 300 * time.Second
// timeout duration for announce/prepare/commit // timeout duration for announce/prepare/commit
phaseDuration time.Duration = 90 * time.Second phaseDuration time.Duration = 300 * time.Second
bootstrapDuration time.Duration = 90 * time.Second bootstrapDuration time.Duration = 300 * time.Second
maxLogSize uint32 = 1000 maxLogSize uint32 = 1000
// threshold between received consensus message blockNum and my blockNum // threshold between received consensus message blockNum and my blockNum
consensusBlockNumBuffer uint64 = 1 consensusBlockNumBuffer uint64 = 1

Loading…
Cancel
Save