Git Product home page Git Product logo

Comments (3)

joostjager avatar joostjager commented on May 26, 2024 1

For the outbound fee, I think it makes sense to set a non-zero default. But for the inbound fee, I'd say that zero (no discount) is a logical default.

Any ideas on what the use case could be for a discount by default?

from lnd.

joostjager avatar joostjager commented on May 26, 2024 1

I think a global value that when modified would also apply to all existing channels that use default fees could perhaps be useful, but as far as I know it isn't implemented like that.

Currently the config value is almost alike a hidden parameter to the api call. I think it is debatable whether that is good api design. In the past, there has been confusion with default values on the api level. The most prominent example of that may have been the default fee limit for payments (100% of payment amount). My impression was that forcing api users to set the value has been an improvement.

For consistency I understand that you might want the inbound fee default in the config file, but it does feel like a step in the wrong direction. Removing the outbound fee default and making it an explicit parameter in the api call to me feels like the better direction.

The one place where in and out defaults are needed, I think, is when accepting a channel from a peer. But those defaults could be explicitly limited to that scope.

from lnd.

Roasbeef avatar Roasbeef commented on May 26, 2024

But for the inbound fee, I'd say that zero (no discount) is a logical default.

Yeah agreed re zero as a default.

The gap here is that users right now must use the RPC/CLI to set the value each time vs being able to set a global value using the config here like all the other fee/routing knobs.

from lnd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.