Merge pull request #490 from 8go/patch-105

node_operations: autopilot 2: BUG + touchups
pull/491/head^2
Andreas M. Antonopoulos 4 years ago committed by GitHub
commit fba88d8732
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -755,11 +755,11 @@ As is common, the amounts in the configuration file are enumerated in satoshis.
Currently channels below 1 mBTC are not very useful and we do not recommend to open channels that are too small and below this amount. Currently channels below 1 mBTC are not very useful and we do not recommend to open channels that are too small and below this amount.
With the wider adoption of multipath payments smaller channels are less of a burden but for the time being this is our recommendation. With the wider adoption of multipath payments smaller channels are less of a burden but for the time being this is our recommendation.
The c-lightning plugin works very differently in comparison to the lnd autopilot. The +c-lightning+ plugin works very differently in comparison to the +lnd+ autopilot.
Not only from the used algorithms to make the recommendations - which we do not discuss here - but also from the user interface. First, it differs in the algorithms used to make the recommendations. We will not cover this here. Secondly, it differs in its user interface.
First you will need to download the autopilot plugin from the c-lightning plugin repository at https://github.com/lightningd/plugins/tree/master/autopilot and activate it. You will need to download the _autopilot plugin_ from the +c-lightning+ plugin repository at https://github.com/lightningd/plugins/tree/master/autopilot and activate it.
We have already explained how to activate plugins in c-lightning. We have already explained how to activate plugins in +c-lightning+.
The autopilot in c-lightning now gets 3 configuration values which can be set in the config file or as command line arguments when you start lightningd The autopilot in +c-lightning+ is controlled via 3 configuration values which can be set in the config file or as command line arguments when you start +lightningd+.
---- ----
[c-lightning-autopilot] [c-lightning-autopilot]
@ -769,22 +769,23 @@ autopilot-min-channel-size-msat=100000000msat
---- ----
These values are the actual default config and you do not need to set them at all. These values are the actual default config and you do not need to set them at all.
The autopilot will not automatically run in the background like lnd.
Instead you have to start a run specifically with `lightning-cli autopilot-run-once` if you do not want the autopilot to open the recommended channels. The autopilot will not automatically run in the background like in +lnd+.
But if you want it to just make recommendations to you from which you can handpick the nodes you can add the optional `dryrun` argument. Instead, you have to start a run specifically with `lightning-cli autopilot-run-once` if you want the autopilot to open the recommended channels.
But if you want it to just provide you with recommendations, from which you can handpick the nodes, you can append the optional `dryrun` argument.
A key difference between the lnd and the c-lightning autopilot is that the c-lightning autopilot will also make a recommendation for the channel size.
For example if the autopilot recommends to open a channel with a small node that only has small channels it will not recommend to open a large channel. A key difference between the +lnd+ and the +c-lightning+ autopilots is that the +c-lightning+ autopilot will also make a recommendation for the channel size.
However if it opens a channel with a well connected node that also has many large channels it will probably recommend a larger channel size. For example, if the autopilot recommends to open a channel with a small node that only has small channels, it will not recommend to open a large channel.
However, if it opens a channel with a well connected node that also has many large channels, it will probably recommend a larger channel size.
As you can see the c-lightning autopilot is not as automatic as lnd but gives you a little bit more control.
These differences are of personal preference and could actually be the deciding factor for you why you chose one implementation over the other. As you can see the +c-lightning+ autopilot is not as automatic as +lnd+'s, but it gives you a little bit more control.
These differences reflect personal preferences and could actually be the deciding factor for you to chose one implementation over the other.
Keep in mind that current autopilots will mainly use public information from the gossip protocol about the current topology of the lightning network.
It is very obvious that your personal requirements for channels can and will only be reflected to a certain degree. Keep in mind that current autopilots will primarily use public information from the gossip protocol about the current topology of the Lightning network.
More advanced autopilots would use information that your node already has gatherd by running in the past about routing successes and who you have paid in the past. It is obvious that your personal requirements for channels can and will be reflected only to a certain degree.
Such autopilots might in the future also use the knowledge and statistics that they have collected to make recommendations to close channels and allocate the funds in another way. More advanced autopilots would use historical and usage information that your node has gathered by running in the past, including information about routing successes, whom you have paid in the past, and who paid you.
We mention these things to you as a word of warning to not rely too heavily on the autopilot feature at the time of writing this book. Such improved autopilots might in the future use this collected data to also make recommendations on closing channels and re-allocating funds.
Take this as a word of caution to not depend or rely too heavily on the autopilot feature at the time of writing of this book.
==== Getting inbound liquidity ==== Getting inbound liquidity

Loading…
Cancel
Save