Skip to content
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

Configuration - clboss-min-onchain #31

Closed
hosiawak opened this issue Nov 13, 2020 · 3 comments · Fixed by #43
Closed

Configuration - clboss-min-onchain #31

hosiawak opened this issue Nov 13, 2020 · 3 comments · Fixed by #43

Comments

@hosiawak
Copy link
Contributor

hosiawak commented Nov 13, 2020

Edited by ZmnSCPxj

Add a --clboss-min-onchain option that overrides our default 0.0003 minimum amount we leave onchain.


Original OP:

@ZmnSCPxj Are you planning to include some way to configure clboss (eg. by passing clboss-whatever options to lightningd.conf) ?

For example clboss-max-channels = 30 meaning it'll try to open up to that many channels. Once it reaches this threshold it'll stop the opening process (even if there are onchain funds) but it'll continue its other chores (eg. rebalancing). The use case here is I'd like to have onchain funds in the wallet (eg. for swaps if it's an exchange) but not spend it all to open new channels. The default value could be 0 meaning the current behaviour.

@ZmnSCPxj
Copy link
Owner

I prefer to not have any configuration options at all, but I certainly understand that some use-cases may require them.

I was actually intending to have some way to set a minimum amount of onchain funds to leave. If you notice, CLBOSS leaves a small amount of around 0.0003 BTC, which is intended to be used for anchor commitments and other onchain actions needed to maintain the node (currently not needed in Poon-Dryja, but may be needed later on when the network switches to Decker-Russell-Osuntokun). This amount could be made configurable.

I think it is more useful to target an amount of funds to leave onchain rather than a specific number of channels, since CLBOSS can create channels as small as 0.005 BTC (absolute minimum size, though CLBOSS tries to create channels with 0.01 BTC at smallest if it can) to 0.15 BTC (just below the wumbo limit --- CLBOSS currently respects the wumbo limit), which would translate to fairly large deviations if the limit CLBOSS imposes is number of channels.

@hosiawak
Copy link
Contributor Author

A minimum amount of onchain funds to leave would work too.

@ZmnSCPxj
Copy link
Owner

Okay, I will modify OP and subject to use minimum amount of onchain funds.

@ZmnSCPxj ZmnSCPxj changed the title Configuration - clboss-max-channels Configuration - clboss-min-onchain Nov 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants