Reduce block production interval to seed up e2e rewarding test
@@ -594,10 +594,10 @@ func newConfig(
cfg.ActPool.MinGasPriceStr = big.NewInt(0).String()
cfg.Consensus.Scheme = config.RollDPoSScheme
- cfg.Consensus.RollDPoS.FSM.UnmatchedEventInterval = 400 * time.Millisecond
- cfg.Consensus.RollDPoS.FSM.AcceptBlockTTL = 300 * time.Millisecond
- cfg.Consensus.RollDPoS.FSM.AcceptProposalEndorsementTTL = 300 * time.Millisecond
- cfg.Consensus.RollDPoS.FSM.AcceptLockEndorsementTTL = 300 * time.Millisecond
+ cfg.Consensus.RollDPoS.FSM.UnmatchedEventInterval = 40 * time.Millisecond
+ cfg.Consensus.RollDPoS.FSM.AcceptBlockTTL = 30 * time.Millisecond
+ cfg.Consensus.RollDPoS.FSM.AcceptProposalEndorsementTTL = 30 * time.Millisecond
+ cfg.Consensus.RollDPoS.FSM.AcceptLockEndorsementTTL = 30 * time.Millisecond
cfg.Consensus.RollDPoS.FSM.EventChanSize = 100000
cfg.Consensus.RollDPoS.ToleratedOvertime = 1200 * time.Millisecond
cfg.Consensus.RollDPoS.Delay = 6 * time.Second
@@ -609,7 +609,7 @@ func newConfig(
cfg.Genesis.Blockchain.TimeBasedRotation = true
cfg.Genesis.Delegates = cfg.Genesis.Delegates[0:numNodes]
- cfg.Genesis.BlockInterval = 1 * time.Second
+ cfg.Genesis.BlockInterval = 100 * time.Millisecond
cfg.Genesis.EnableGravityChainVoting = true
cfg.Genesis.Rewarding.FoundationBonusLastEpoch = 2
