Final testnet params
This commit is contained in:
parent
dc7248f440
commit
37113aeab1
@ -31,4 +31,4 @@ const InteractivePoRepDelay = 8
|
|||||||
const InteractivePoRepConfidence = 6
|
const InteractivePoRepConfidence = 6
|
||||||
|
|
||||||
// Bytes
|
// Bytes
|
||||||
var MinimumMinerPower uint64 = 20 << 30 // 20GB
|
var MinimumMinerPower uint64 = 512 << 30 // 512GB
|
||||||
|
@ -83,10 +83,6 @@ var InitialReward *big.Int
|
|||||||
|
|
||||||
const FilecoinPrecision = 1_000_000_000_000_000_000
|
const FilecoinPrecision = 1_000_000_000_000_000_000
|
||||||
|
|
||||||
// six years
|
|
||||||
// Epochs
|
|
||||||
const HalvingPeriodEpochs = 6 * 365 * 24 * 60 * 2
|
|
||||||
|
|
||||||
// TODO: Move other important consts here
|
// TODO: Move other important consts here
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
@ -9,10 +9,12 @@ import (
|
|||||||
"github.com/filecoin-project/lotus/chain/types"
|
"github.com/filecoin-project/lotus/chain/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
const HalvingPeriodEpochs = 6 * 365 * 24 * 60 * 2
|
||||||
|
|
||||||
func TestBlockReward(t *testing.T) {
|
func TestBlockReward(t *testing.T) {
|
||||||
coffer := types.FromFil(build.MiningRewardTotal).Int
|
coffer := types.FromFil(build.MiningRewardTotal).Int
|
||||||
sum := new(big.Int)
|
sum := new(big.Int)
|
||||||
N := build.HalvingPeriodEpochs
|
N := HalvingPeriodEpochs
|
||||||
for i := 0; i < N; i++ {
|
for i := 0; i < N; i++ {
|
||||||
a := MiningReward(types.BigInt{coffer})
|
a := MiningReward(types.BigInt{coffer})
|
||||||
sum = sum.Add(sum, a.Int)
|
sum = sum.Add(sum, a.Int)
|
||||||
|
Loading…
Reference in New Issue
Block a user