-
Notifications
You must be signed in to change notification settings - Fork 122
conf: sample config for loopd #637
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
ee89a3d to
25d6b8d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm, thanks for putting all this together! 🔬
I commented on some "LSAT" occurrences to be converted to "L402", but lsat also appears a lot in variables and codebase. Perhaps we could do an all-around renaming in a future iteration
| @@ -0,0 +1,171 @@ | |||
| ; Example configuration for loopd. | |||
| ; | |||
| ; The default location for this file is in ~/.loop/mainnet/loopd.conf on POSIX | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| ; The default location for this file is in ~/.loop/mainnet/loopd.conf on POSIX | |
| ; The default location for this file is in ~/.loop/{mainnet, testnet, regtest}/loopd.conf on POSIX |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just a suggestion
sample-loopd.conf
Outdated
| ; maxlsatcost=1000 | ||
|
|
||
| ; Maximum routing fee in satoshis that we are willing to pay while paying for an | ||
| ; LSAT token. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| ; LSAT token. | |
| ; L402 token. |
sample-loopd.conf
Outdated
| ; -- You may also specify <subsystem>=<level>,<subsystem2>=<level>,... to set. | ||
| ; debuglevel= | ||
|
|
||
| ; Maximum cost in satoshis that loopd is going to pay for an LSAT token |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| ; Maximum cost in satoshis that loopd is going to pay for an LSAT token | |
| ; Maximum cost in satoshis that loopd is going to pay for an L402 token |
sample-loopd.conf
Outdated
| ; The maximum number of times an off-chain payment may be retried. | ||
| ; maxpaymentretries=3 | ||
|
|
||
| ; Enable experimental features: taproot HTLCs and MuSig2 loop out sweeps. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
taproot/Musig2 are the default now right?
bhandras
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice, thanks! :)
sample-loopd.conf
Outdated
| ; maxpaymentretries=3 | ||
|
|
||
| ; Enable experimental features: taproot HTLCs and MuSig2 loop out sweeps. | ||
| ; experimental=false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd leave out the taproot HTLCs and MuSig2 from the doc here, since these are now the default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we also remove that flag from the loop app? Can do that in a follow-up if needed.
sample-loopd.conf
Outdated
|
|
||
| [sqlite] | ||
|
|
||
| ; Skip applying migrations on startup. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add a comment that this is for development and debugging purposes and should not be played with.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would just remove them. I don't think the postgres and sqlite fields need to be exposed in the sample conf
sample-loopd.conf
Outdated
| [postgres] | ||
|
|
||
| ; Skip applying migrations on startup. | ||
| ; postgres.skipmigrations=false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above.
| ; Skip applying migrations on startup. | ||
| ; postgres.skipmigrations=false | ||
|
|
||
| ; Database server hostname. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps fill with some defaults for a locally running postgres instance.
sample-loopd.conf
Outdated
| [server] | ||
|
|
||
| ; Loop server address host:port | ||
| ; server.host= |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd fill the defaults for mainnet here too.
25d6b8d to
07e1254
Compare
sputn1ck
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Addresses #528
This PR introduces a sample configuration file for
loopd. The configuration pattern follows the style which was introduced forlnd's sample configuration file in lightningnetwork/lnd#7770.This PR was tested in regtest by outsourcing the following command line flags to the configuration file: