Skip to content

Commit

Permalink
fixed privnet diff adjustment window size
Browse files Browse the repository at this point in the history
  • Loading branch information
frankcrypto committed Oct 22, 2024
1 parent fe01b4d commit 3ce1669
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions params/params_privnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@
package params

import (
"math/big"
"time"

"github.com/Qitmeer/qng/common"
"github.com/Qitmeer/qng/core/protocol"
"github.com/Qitmeer/qng/core/types"
"github.com/Qitmeer/qng/core/types/pow"
"github.com/Qitmeer/qng/ledger"
eparams "github.com/ethereum/go-ethereum/params"
"math/big"
"time"
)

// privNetPowLimit is the highest proof of work value a block can
Expand Down Expand Up @@ -120,10 +121,10 @@ var PrivNetParams = Params{
MaximumBlockSizes: []int{1000000, 1310720},
MaxTxSize: 1000000,
WorkDiffAlpha: 1,
WorkDiffWindowSize: 1600,
WorkDiffWindowSize: 60,
WorkDiffWindows: 20,
TargetTimePerBlock: time.Second * privTargetTimePerBlock,
TargetTimespan: time.Second * privTargetTimePerBlock * 1600, // TimePerBlock * WindowSize
TargetTimespan: time.Second * privTargetTimePerBlock * 60, // TimePerBlock * WindowSize
RetargetAdjustmentFactor: 2,

// Subsidy parameters.
Expand Down

0 comments on commit 3ce1669

Please sign in to comment.