Final testnet params

This commit is contained in:
Łukasz Magiera 2019-12-11 17:27:30 +01:00
parent dc7248f440
commit 37113aeab1
3 changed files with 4 additions and 6 deletions

View File

@ -31,4 +31,4 @@ const InteractivePoRepDelay = 8
const InteractivePoRepConfidence = 6
// Bytes
var MinimumMinerPower uint64 = 20 << 30 // 20GB
var MinimumMinerPower uint64 = 512 << 30 // 512GB

View File

@ -83,10 +83,6 @@ var InitialReward *big.Int
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
func init() {

View File

@ -9,10 +9,12 @@ import (
"github.com/filecoin-project/lotus/chain/types"
)
const HalvingPeriodEpochs = 6 * 365 * 24 * 60 * 2
func TestBlockReward(t *testing.T) {
coffer := types.FromFil(build.MiningRewardTotal).Int
sum := new(big.Int)
N := build.HalvingPeriodEpochs
N := HalvingPeriodEpochs
for i := 0; i < N; i++ {
a := MiningReward(types.BigInt{coffer})
sum = sum.Add(sum, a.Int)