Giter Club home page Giter Club logo

Comments (3)

dcousens avatar dcousens commented on July 1, 2024

@Runn1ng when possible, a fee is returned to indicate to a higher-level UI or algorithm what the prospective fees would at least be given the current set of inputs and outputs.

This can provide support for users to iteratively build transactions, seeing what the fees might be, even if a valid, balanced transaction doesn't exist [yet].

In the blackjack algorithm, it is less useful, but it was an interface I maintained.

If no fee is returned, it likely means that the inputs given are entirely invalid, not just that there doesn't exist a valid subset.

from coinselect.

dcousens avatar dcousens commented on July 1, 2024

For example, I want to send a transaction with 200 satoshi/byte fee, but I can't afford it.
Without fee being returned, I wouldn't be able to inform the user "transaction fee would be X, you only have Y", I could only say "not enough funds".
It isn't 100% representative of what the fee "would have" been, but, it is informative.

from coinselect.

karelbilek avatar karelbilek commented on July 1, 2024

OK, that makes some sense, altough I am still not sure if it doesn't end up more confusing than informative.

from coinselect.

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.