correctly predict miner addresses for test
This commit is contained in:
parent
3dddcb85e7
commit
57f6d9e624
@ -127,7 +127,7 @@ func NewGenerator() (*ChainGen, error) {
|
|||||||
|
|
||||||
// TODO: this is really weird, we have to guess the miner addresses that
|
// TODO: this is really weird, we have to guess the miner addresses that
|
||||||
// will be created in order to preseal data for them
|
// will be created in order to preseal data for them
|
||||||
maddr1, err := address.NewFromString("t0101")
|
maddr1, err := address.NewFromString("t0103")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
@ -142,7 +142,7 @@ func NewGenerator() (*ChainGen, error) {
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
maddr2, err := address.NewFromString("t0102")
|
maddr2, err := address.NewFromString("t0104")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
@ -286,8 +286,6 @@ func SetupStorageMiners(ctx context.Context, cs *store.ChainStore, sroot cid.Cid
|
|||||||
return cid.Undef, nil, err
|
return cid.Undef, nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
gmcfg.MinerAddrs = append(gmcfg.MinerAddrs, maddr)
|
|
||||||
|
|
||||||
power := types.BigMul(types.NewInt(minerParams.SectorSize), types.NewInt(uint64(len(ps.Sectors))))
|
power := types.BigMul(types.NewInt(minerParams.SectorSize), types.NewInt(uint64(len(ps.Sectors))))
|
||||||
|
|
||||||
params = mustEnc(&actors.UpdateStorageParams{Delta: power})
|
params = mustEnc(&actors.UpdateStorageParams{Delta: power})
|
||||||
|
Loading…
Reference in New Issue
Block a user