Lower minimum difficulty for mainnet and testnet (#1220)

This commit is contained in:
Svarog 2020-12-14 12:39:54 +02:00 committed by GitHub
parent 2c1688909d
commit a9e0c33e5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,8 +32,8 @@ var (
mainPowMax = new(big.Int).Sub(new(big.Int).Lsh(bigOne, 255), bigOne)
// testnetPowMax is the highest proof of work value a Kaspa block
// can have for the test network. It is the value 2^239 - 1.
testnetPowMax = new(big.Int).Sub(new(big.Int).Lsh(bigOne, 239), bigOne)
// can have for the test network. It is the value 2^255 - 1.
testnetPowMax = new(big.Int).Sub(new(big.Int).Lsh(bigOne, 255), bigOne)
// simnetPowMax is the highest proof of work value a Kaspa block
// can have for the simulation test network. It is the value 2^255 - 1.
@ -41,8 +41,8 @@ var (
// devnetPowMax is the highest proof of work value a Kaspa block
// can have for the development network. It is the value
// 2^239 - 1.
devnetPowMax = new(big.Int).Sub(new(big.Int).Lsh(bigOne, 239), bigOne)
// 2^255 - 1.
devnetPowMax = new(big.Int).Sub(new(big.Int).Lsh(bigOne, 255), bigOne)
)
// KType defines the size of GHOSTDAG consensus algorithm K parameter.