func GetRouteManual(client *lndwrapper.Lnd, db *DB, destination [4]byte, ipAddress string) (*Route, error) {

	route := createRoute(destination)

	if !db.IsAddressRegistered(destination) {
		return nil, errors.New("Destination is not a registered address")
	}

	//Start by connecting to the destination node
	ConnectToDestination(client, db, destination, ipAddress, route.token)

	//Add the first hop to the route and send forward the request through the network
	localHop, err := addHopToRoute(client, db, route)
	if err != nil {
		return nil, err
	}
	ForwardRoute(client, db, route, localHop)

	//Wait for the proble to reach the destination
	//and receive the route from the destination onode
	routeResponse := ReceiveRouteFromDestination(db, route.token)

	return routeResponse, nil
}
//GetRouteManual gets a route to a destination that is a public node
GetRouteManual gets a route to a destination that is a public node
// GetRouteManual gets a route to a destination that is a public node
func GetRouteManual(client *lndwrapper.Lnd, db *DB, destination [4]byte, ipAddress string) (*Route, error) {
	route := createRoute(destination)
	if !db.IsAddressRegistered(destination) {
		return nil, errors.New("Destination is not a registered address")
	}
	ConnectToDestination(client, db, destination, ipAddress, route.token)
	localHop, err := addHopToRoute(client, db, route)
	if err != nil {
		return nil, err
	}
	ForwardRoute(client, db, route, localHop)
	routeResponse := ReceiveRouteFromDestination(db, route.token)
	return routeResponse, nil
}
func GetRouteManual ( client * lndwrapper . Lnd , db * DB , destination [ 4 ] byte , ipAddress string ) ( * Route , error ) { route := createRoute ( destination ) if ! db . IsAddressRegistered ( destination ) { return nil , errors . New ( " " ) } ConnectToDestination ( client , db , destination , ipAddress , route . token ) localHop , err := addHopToRoute ( client , db , route ) if err != nil { return nil , err } ForwardRoute ( client , db , route , localHop ) routeResponse := ReceiveRouteFromDestination ( db , route . token ) return routeResponse , nil }
GetRouteManual gets a route to a destination that is a public node
GetRouteManual gets a route to a destination that is a public node
//Start by connecting to the destination node //Add the first hop to the route and send forward the request through the network //Wait for the proble to reach the destination //and receive the route from the destination onode