Skip to content

Commit

Permalink
set block production time to 100ms in accelerated regtest mode (#1444)
Browse files Browse the repository at this point in the history
  • Loading branch information
lazynina authored Feb 25, 2025
1 parent b1b1397 commit 2e6b44d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -925,9 +925,10 @@ func (params *DeSoParams) EnableRegtest(isAcceleratedRegtest bool) {
params.ForkHeights = RegtestForkHeights
if isAcceleratedRegtest {
params.ForkHeights.ProofOfStake2ConsensusCutoverBlockHeight = 30
params.FastHotStuffConsensusTransitionCheckDuration = 100 * time.Millisecond
params.DefaultEpochDurationNumBlocks = uint64(5)
params.DefaultBlockProductionIntervalMillisecondsPoS = 1000 // 1s
params.DefaultTimeoutIntervalMillisecondsPoS = 2000 // 2s
params.DefaultBlockProductionIntervalMillisecondsPoS = 100 // 100ms
params.DefaultTimeoutIntervalMillisecondsPoS = 500 // 500ms
newSeedBalance := &DeSoOutput{
PublicKey: MustBase58CheckDecode("tBCKVERmG9nZpHTk2AVPqknWc1Mw9HHAnqrTpW1RnXpXMQ4PsQgnmV"),
AmountNanos: 1e14,
Expand Down

0 comments on commit 2e6b44d

Please sign in to comment.