achow101 / coin-selection-simulation

13 stars 5 forks source link

Allow specification of initial UTXO pool #5

Open murchandamus opened 2 years ago

murchandamus commented 2 years ago

Sometimes it might be interesting to run a payment scenario in the context of different initial UTXO pools. E.g. a payment scenario could perform very differently if the wallet was initialized with a single ₿10 UTXO, or if the wallet were initialized with the Dias payments.

achow101 commented 2 years ago

Couldn't you just prefix the scenario with deposits that set the desired UTXO pool?

murchandamus commented 2 years ago

Sure, that'll work meanwhile. The point would be that you can easily cross-combine initial UTXO pools with various scenarios without it resulting in an explosion of scenario files.

E.g. 10 UTXO pools and 5 payment sequences = 15 files, but 50 possible combinations. We can do the same today, but only with 50 files.

It's not urgent, it's more of an idea for something we may want to do as simulations expand.