-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inputs nor outputs are returned when a certain condition is met #75
Comments
whats the purpose of using coinselect then? |
For fee calculation and output preparation for Line 32 in 1f7cd37
And hit "waste" the second time, which it returns the fee only. |
so i would suggest that solution was indeed not found, to satisfy the requested feerate. provide a test vector so we can check this hypothesis |
I was attempting to use That's what it sounds like from the documentation, but it was not very clear to me that it will always fail if not within this threshold, maybe a clearer instruction that using
The Using
Using
So is the advice to avoid duplicate runs of coin select to always prefer using the And do the main one if you want sort order + a potential lucky (hence the name?) optimization that blackjack does? |
If I understand this correctly, I shouldn't rely on the fee value returned unless either inputs or outputs are returned? Here is from the README example:
There is only a single UTXO provided to the coinselect and it runs to the following line, which makes it continue out of the loop and go to the bottom where only
fee
is returned:coinselect/blackjack.js
Line 22 in 1f7cd37
That results in both inputs and outputs being empty, which are only supplied if finalize is ever called, which in the case you have a single UTXO that has enough for output and fee.
coinselect/blackjack.js
Line 34 in 1f7cd37
Is this expected behavior, that inputs and outputs will be empty in a scenario like this and is the example misleading, or do I have other issues with the provided input data?
The text was updated successfully, but these errors were encountered: