Open tzarebczan opened 4 years ago
sqlitecoinchooser is supposed to take care of this.
@eukreign is this fixed in rewrite?
@eukreign is this fixed in rewrite?
TLDR; this is not currently solved in new SDK and there is more than one way to solve it depending on if you're in SDK server mode (postgres) or in desktop client mode (sqlite)...
new SDK can solve this when running with postgresql (implement a coin chooser in pl/sql
) but for the desktop mode it's still a problem if you have a lot of UTXOs and it needs to load all of them to do the selecting, @jackrobison had a solution that simplified the selection algorithm where it could be done with sqlite (we can look at porting his work to the new SDK when we get to this point)
We need the coinchooser to be smarter and clean up large lists of UTXOs after X amount (maybe 1k to start?). If not, this bogs down all wallet operations since it needs to load the entire uxto set on each one.