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

store "max sane feerate" in config file instead hardcoding it #891

Open
pythcoiner opened this issue Dec 20, 2023 · 6 comments
Open

store "max sane feerate" in config file instead hardcoding it #891

pythcoiner opened this issue Dec 20, 2023 · 6 comments
Labels
Daemon / Liana library This is about lianad or the liana library (not the GUI) In discussion Not ready for implementation. It is still being discussed whether we should address this issue.

Comments

@pythcoiner
Copy link
Collaborator

following my comment here, i think we should store this value in the config file instead of hardcoding it as we already see many tx w/ a feerate > 1000sats/vb

fees

(I do not check if it has already been tackled in the lasts commits of v4)

@darosior darosior added Feature New feature or functionality. Daemon / Liana library This is about lianad or the liana library (not the GUI) labels Dec 22, 2023
@kloaec
Copy link
Collaborator

kloaec commented Jan 10, 2024

I opened this, as it's related:
#910

@pythcoiner
Copy link
Collaborator Author

looking at this, in spend.rs we have several constants defined:

/// We would never create a transaction with an output worth less than this.
/// That's 1$ at 20_000$ per BTC.
pub const DUST_OUTPUT_SATS: u64 = 5_000;

/// Long-term feerate (sats/vb) used for coin selection considerations.
pub const LONG_TERM_FEERATE_VB: f32 = 10.0;

/// Assume that paying more than 1BTC in fee is a bug.
pub const MAX_FEE: bitcoin::Amount = bitcoin::Amount::ONE_BTC;

/// Assume that paying more than 1000sat/vb in feerate is a bug.
pub const MAX_FEERATE: u64 = 1_000;

should we move all in the config file instead?

@pythcoiner
Copy link
Collaborator Author

@darosior

@darosior
Copy link
Member

Sure we can make the dust output sat, max fee, max feerate and long term feerate configurable.

@edouardparis
Copy link
Member

edouardparis commented Feb 26, 2024

I am using this thread to give an opinion about configuration: I think we should not use the configuration file for this kind of values but use the wallet table and change them using a new command. It will help us long term for the multiple wallet support and it enable "on the fly" change of the dust value by the client without having to restart the daemon.

@pythcoiner
Copy link
Collaborator Author

I am using this thread to give an opinion about configuration: I think we should not use the configuration file for this kind of values but use the wallet table and change them using a new command. It will help us long term for the multiple wallet support and it enable "on the fly" change of the dust value by the client without having to restart the daemon.

you mean have some way from GUI (in settings) to allow user to change?

@nondiremanuel nondiremanuel added In discussion Not ready for implementation. It is still being discussed whether we should address this issue. and removed Feature New feature or functionality. labels May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Daemon / Liana library This is about lianad or the liana library (not the GUI) In discussion Not ready for implementation. It is still being discussed whether we should address this issue.
Projects
None yet
Development

No branches or pull requests

5 participants