bitcoinjs / coinselect

An unspent transaction output (UTXO) selection module for bitcoin.
MIT License
178 stars 101 forks source link

Consolidate all strategy..? #43

Open Overtorment opened 5 years ago

Overtorment commented 5 years ago

I'm looking for a strategy to consolidate all inputs in a single output. Yes this completely destroys privacy but it allows to consolidate during the period of low fees to prepare for a period of high fees. Looks like coinselect/split is what might work, but asking just for any case. Or can implement and send a PR if you approve this idea.

Overtorment commented 4 years ago

Up!

junderw commented 4 years ago

Yeah it looks like you could just create a new strategy by importing split and making sure outputs was only one and value was undefined.

PRs are welcome. It seems like something someone could easily figure out, but having it explicitly as a file might clue people in to the methodology.