correctly predict miner addresses for test

This commit is contained in:
whyrusleeping 2019-11-28 20:45:30 -08:00
parent 3dddcb85e7
commit 57f6d9e624
2 changed files with 2 additions and 4 deletions

View File

@ -127,7 +127,7 @@ func NewGenerator() (*ChainGen, error) {
// TODO: this is really weird, we have to guess the miner addresses that
// will be created in order to preseal data for them
maddr1, err := address.NewFromString("t0101")
maddr1, err := address.NewFromString("t0103")
if err != nil {
return nil, err
}
@ -142,7 +142,7 @@ func NewGenerator() (*ChainGen, error) {
return nil, err
}
maddr2, err := address.NewFromString("t0102")
maddr2, err := address.NewFromString("t0104")
if err != nil {
return nil, err
}

View File

@ -286,8 +286,6 @@ func SetupStorageMiners(ctx context.Context, cs *store.ChainStore, sroot cid.Cid
return cid.Undef, nil, err
}
gmcfg.MinerAddrs = append(gmcfg.MinerAddrs, maddr)
power := types.BigMul(types.NewInt(minerParams.SectorSize), types.NewInt(uint64(len(ps.Sectors))))
params = mustEnc(&actors.UpdateStorageParams{Delta: power})