Skip to content

Commit

Permalink
Merge branch 'dev/1.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
dindinw committed May 22, 2024
2 parents e4f989b + ec59295 commit 128b0e9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 22 deletions.
4 changes: 0 additions & 4 deletions params/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,6 @@ type Checkpoint struct {
Hash *hash.Hash
}

const (
CoinbaseVersionV1 = "0.10.4"
)

// Params defines a qitmeer network by its parameters. These parameters may be
// used by qitmeer applications to differentiate networks as well as addresses
// and keys for one network from those intended for use on another network.
Expand Down
9 changes: 1 addition & 8 deletions params/params_mixnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,7 @@ var MixNetParams = Params{
GenesisAmountUnit: 1000 * 1e8, // 1000 MEER every utxo
MaxLockHeight: 86400 / mixTargetTimePerBlock * 365 * 5, // max lock height
},
CoinbaseConfig: CoinbaseConfigs{
{
Height: 23000,
Version: CoinbaseVersionV1,
ExtraDataIncludedVer: true,
ExtraDataIncludedNodeInfo: true,
},
},
CoinbaseConfig: CoinbaseConfigs{},
PowConfig: &pow.PowConfig{
Blake2bdPowLimit: testMixNetPowLimit,
Blake2bdPowLimitBits: 0x2003ffff,
Expand Down
14 changes: 4 additions & 10 deletions params/params_testnet.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/common/math"
"github.com/Qitmeer/qng/core/protocol"
"github.com/Qitmeer/qng/core/types"
"github.com/Qitmeer/qng/core/types/pow"
"github.com/Qitmeer/qng/ledger"
"math/big"
"time"
)

// testNetPowLimit is the highest proof of work value a block can
Expand Down Expand Up @@ -74,14 +75,7 @@ var TestNetParams = Params{
// after this height the big graph will be the main pow graph
AdjustmentStartMainHeight: 365 * 1440 * 60 / testTargetTimePerBlock,
},
CoinbaseConfig: CoinbaseConfigs{
{
Height: 61279,
Version: "0.10.4",
ExtraDataIncludedVer: true,
ExtraDataIncludedNodeInfo: true,
},
},
CoinbaseConfig: CoinbaseConfigs{},
ReduceMinDifficulty: false,
MinDiffReductionTime: 0, // Does not apply since ReduceMinDifficulty false
GenerateSupported: true,
Expand Down

0 comments on commit 128b0e9

Please sign in to comment.