func (server *OpencxServer) LinkAllWallets() (err error) {

	// Not sure whether or not this should just assume that everything in the map is what you want, but I'm going to
	// assume that if there's a coin / param in the CoinList that isn't in the wallet map, then the wallets haven't
	// been started or something is wrong. This is definitely a synchronous thing to be doing, you need to start
	// the wallets for all your coins before you try to link them all. If you don't want to link them all, use
	// LinkManyWallets.
	for _, param := range server.CoinList {
		wallet, found := server.WalletMap[param]
		if !found {
			err = fmt.Errorf("Wallet in Coin List not being tracked by exchange in map, start it please")
		}

		// Idk if I should run a tower with these, probably. It's an exchange
		if err = server.LinkOneWallet(wallet, false); err != nil {
			return
		}

	}

	logging.Infof("Successfully linked all wallets!")
	return
}
// LinkAllWallets will link the exchanges' wallets with the lit node running. Defaults to false for running tower.
LinkAllWallets will link the exchanges' wallets with the lit node running. Defaults to false for running tower.
// LinkAllWallets will link the exchanges ' wallets with the lit node running . Defaults to false for running tower .
func (server *OpencxServer) LinkAllWallets() (err error) {
	for _, param := range server.CoinList {
		wallet, found := server.WalletMap[param]
		if !found {
			err = fmt.Errorf("Wallet in Coin List not being tracked by exchange in map, start it please")
		}
		if err = server.LinkOneWallet(wallet, false); err != nil {
			return
		}
	}
	logging.Infof("Successfully linked all wallets!")
	return
}
func ( server * OpencxServer ) LinkAllWallets ( ) ( err error ) { for _ , param := range server . CoinList { wallet , found := server . WalletMap [ param ] if ! found { err = fmt . Errorf ( " " ) } if err = server . LinkOneWallet ( wallet , false ) ; err != nil { return } } logging . Infof ( " " ) return }
LinkAllWallets will link the exchanges' wallets with the lit node running.
LinkAllWallets will link the exchanges ' wallets with the lit node running .
// Not sure whether or not this should just assume that everything in the map is what you want, but I'm going to // assume that if there's a coin / param in the CoinList that isn't in the wallet map, then the wallets haven't // been started or something is wrong. This is definitely a synchronous thing to be doing, you need to start // the wallets for all your coins before you try to link them all. If you don't want to link them all, use // LinkManyWallets. // Idk if I should run a tower with these, probably. It's an exchange