// NewDevnet creates a localnet.
NewDevnet creates a localnet.
// NewDevnet creates a localnet .
func NewDevnet(t tests.TestingTWithCleanup, numMiners int, ipfsAddr string) (address.Address, lotus.ClientBuilder, ffs.MinerSelector) {
	client, addr, _ := tests.CreateLocalDevnetWithIPFS(t, numMiners, ipfsAddr, false)
	addrs := make([]string, numMiners)
	for i := 0; i < numMiners; i++ {
		addrs[i] = fmt.Sprintf("f0%d", 1000+i)
	}
	fixedMiners := make([]fixed.Miner, len(addrs))
	for i, a := range addrs {
		fixedMiners[i] = fixed.Miner{Addr: a, Country: "China", EpochPrice: 500000000}
	}
	ms := fixed.New(fixedMiners)
	return addr, client, ms
}
func NewDevnet ( t tests . TestingTWithCleanup , numMiners int , ipfsAddr string ) ( address . Address , lotus . ClientBuilder , ffs . MinerSelector ) { client , addr , _ := tests . CreateLocalDevnetWithIPFS ( t , numMiners , ipfsAddr , false ) addrs := make ( [ ] string , numMiners ) for i := 0 ; i < numMiners ; i ++ { addrs [ i ] = fmt . Sprintf ( " " , 1000 + i ) } fixedMiners := make ( [ ] fixed . Miner , len ( addrs ) ) for i , a := range addrs { fixedMiners [ i ] = fixed . Miner { Addr : a , Country : " " , EpochPrice : 500000000 } } ms := fixed . New ( fixedMiners ) return addr , client , ms }
NewDevnet creates a localnet.
NewDevnet creates a localnet .