func (server *OpencxServer) SetupAllWallets(hostParamList util.HostParamList, subDirName string, resync bool) (err error) {
	hpLen := len(hostParamList)
	errChan := make(chan error, hpLen)
	for _, hostParam := range hostParamList {
		go server.SetupWallet(errChan, subDirName, hostParam.Param, resync, hostParam.Host)
	}

	for i := 0; i < hpLen; i++ {
		if err = <-errChan; err != nil {
			return
		}
	}
	return
}
// SetupAllWallets sets up all wallets with parameters as specified in the hostParamList
SetupAllWallets sets up all wallets with parameters as specified in the hostParamList
// SetupAllWallets sets up all wallets with parameters as specified in the hostParamList
func (server *OpencxServer) SetupAllWallets(hostParamList util.HostParamList, subDirName string, resync bool) (err error) {
	hpLen := len(hostParamList)
	errChan := make(chan error, hpLen)
	for _, hostParam := range hostParamList {
		go server.SetupWallet(errChan, subDirName, hostParam.Param, resync, hostParam.Host)
	}
	for i := 0; i < hpLen; i++ {
		if err = <-errChan; err != nil {
			return
		}
	}
	return
}
func ( server * OpencxServer ) SetupAllWallets ( hostParamList util . HostParamList , subDirName string , resync bool ) ( err error ) { hpLen := len ( hostParamList ) errChan := make ( chan error , hpLen ) for _ , hostParam := range hostParamList { go server . SetupWallet ( errChan , subDirName , hostParam . Param , resync , hostParam . Host ) } for i := 0 ; i < hpLen ; i ++ { if err = <- errChan ; err != nil { return } } return }
SetupAllWallets sets up all wallets with parameters as specified in the hostParamList
SetupAllWallets sets up all wallets with parameters as specified in the hostParamList