Giter Club home page Giter Club logo

Comments (5)

dcousens avatar dcousens commented on July 18, 2024 1

@Runn1ng there is an in-repo fee simulator: https://github.com/bitcoinjs/coinselect/tree/master/stats

I optimized the default export to be the lowest fees over time, but it'd be great to see your take on the approach taken.

from coinselect.

dcousens avatar dcousens commented on July 18, 2024 1

What is the rationale for using blackjack strategy, for selecting the exact match?

My approach assumes a descending by-value UTXO set, with an accumulative exact match strategy to attempt fee minimisation. It isn't perfect.

from coinselect.

karelbilek avatar karelbilek commented on July 18, 2024

It seems the code for the simulation PDF is here - https://github.com/Xekyo/CoinSelectionSimulator - I will look it up and try to run some experiments, to have something to reason with here :)

from coinselect.

karelbilek avatar karelbilek commented on July 18, 2024

Thanks for comments!

I have tried to run the scala simulation code from @xekyo with the gambling hot wallet data (the simulation has a starting UTXO set and a set of value changes) - it actually seems that the strategies all return more or less the same fees, if you add total fees + cost to spend the remaining UTXOs.

The strategy that seem to work the best for the simulation (when total fees+cost to spend the rest is optimized) is Branch and Bound.

I will try to now run your simulation, plus try to understand @xekyo's Branch and Bound algorithm and port it into JS and into this code.

from coinselect.

karelbilek avatar karelbilek commented on July 18, 2024

I am closing this, since BnB is a different strategy

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.