Closed apotdevin closed 4 years ago
This may be a better example to go off of for a circular payment: https://github.com/alexbosworth/ln-service/blob/master/test/integration/test_rebalance.js
Great, tested it and payment goes through when I only do one hop (Control node -> Target Node -> Control node).
For a longer path any recommended way to get the route? Since the getRoute example in this link would give me only a one hop route as above
Here is a more complex example of rebalancing: https://github.com/alexbosworth/balanceofsatoshis/blob/master/swaps/rebalance.js
Will have a look! Thanks
Excited to try out the in house channel balancing coming with LND 9
The 0.9.0 circular rebalancing works a bit differently so I've split the getRoutes method into two methods: getRoutes and getRouteToDestination in order to support both methods
Trying to make a circular payment I was getting an unexpected error. Decided to try from the basic of paying via a route as shown in the documentation with:
but keep getting:
Don't know what i'm missing here