You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the wallet pre-empts the total balance by including all UTXOs in the transaction no matter what the actual output amount may be. In the case of wallets with multiple tiny inputs this approach results in giant transactions even when the owner is spending a fraction of the balance.
The text was updated successfully, but these errors were encountered:
I made a pull request for fixing this. The idea is spending utxos with smaller amounts in the first few transactions. For this to happen we sort the unspent array first (ascending ordered by amount), then we spend the minimum required number of the topmost items as the inputs to the txn under construction. It is also possible to sort the array in reverse order (descending) using the largets outputs first, it would reduce the number of inputs for the first txns, but leaves more dusts in the database.
By the way, is this a dead project?
Currently, the wallet pre-empts the total balance by including all UTXOs in the transaction no matter what the actual output amount may be. In the case of wallets with multiple tiny inputs this approach results in giant transactions even when the owner is spending a fraction of the balance.
The text was updated successfully, but these errors were encountered: