Setup first devnet params

This commit is contained in:
Łukasz Magiera 2019-09-25 20:40:10 +02:00 committed by whyrusleeping
parent b7edfbd6ba
commit a2a2169ef8
4 changed files with 6 additions and 6 deletions

View File

@ -28,7 +28,7 @@ const MaxVouchersPerDeal = 768 // roughly one voucher per 10h over a year
// Consensus / Network
// Seconds
const BlockDelay = 3
const BlockDelay = 6
// Seconds
const AllowableClockDrift = BlockDelay * 2
@ -43,10 +43,10 @@ const ForkLengthThreshold = 20
const RandomnessLookback = 20
// Blocks
const ProvingPeriodDuration = 10
const ProvingPeriodDuration = 40
// Blocks
const PoSTChallangeTime = 5
const PoSTChallangeTime = 20
const PowerCollateralProportion = 20
const PerCapitaCollateralProportion = 5

View File

@ -202,7 +202,7 @@ func SetupStorageMiners(ctx context.Context, cs *store.ChainStore, sroot cid.Cid
// TODO: hardcoding 7000000 here is a little fragile, it changes any
// time anyone changes the initial account allocations
rval, err := doExecValue(ctx, vm, actors.StorageMarketAddress, owner, types.NewInt(700000000), actors.SMAMethods.CreateStorageMiner, params)
rval, err := doExecValue(ctx, vm, actors.StorageMarketAddress, owner, types.NewInt(250000000000000000), actors.SMAMethods.CreateStorageMiner, params)
if err != nil {
return cid.Undef, xerrors.Errorf("failed to create genesis miner: %w", err)
}

View File

@ -19,7 +19,7 @@ import (
var log = logging.Logger("main")
var sendPerRequest = types.NewInt(5_000_000)
var sendPerRequest = types.NewInt(500_000_000)
func main() {
logging.SetLogLevel("*", "INFO")

View File

@ -76,7 +76,7 @@ func MakeGenesis(outFile string) func(bs dtypes.ChainBlockstore, w *wallet.Walle
}
addrs := map[address.Address]types.BigInt{
minerAddr: types.NewInt(5000000000),
minerAddr: types.NewInt(5000000000000000000),
}
b, err := gen.MakeGenesisBlock(bs, addrs, gmc, 100000)