-
Notifications
You must be signed in to change notification settings - Fork 179
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
[ Feat ] Updated Direct-Send RPC-Api to accept list of UTXOs #1721
base: master
Are you sure you want to change the base?
[ Feat ] Updated Direct-Send RPC-Api to accept list of UTXOs #1721
Conversation
Hey @AdamISZ and @kristapsk, First of all, sorry for the disturbance. If you have a moment, could you please take a look at |
@amitx13 Sorry, busy with other stuff, will try to find time and take a look. |
I can't see the reason why CI is failing here. Bug in OpenAPI Diff? For some reason it thinks that @theborakompanioni Could you please test and confirm that this change does not break anything with Jam? That would be good enough for me to merge this. |
I have now had time to test the changes. I exclusively tested on
When doing a sweep ( So, from my point of view, the changes look good overall (except the sweep case). However, I'd love to see some tests covering this behaviour and verifying the above manual test cases. |
Yes, this is intentional. When no value is provided,
I agree, failing makes more sense. Freezing unselected UTXOs and then sweeping with selected UTXOs would alter the original definition of a sweep. Instead of ignoring this case, we should fail it with Looking forward to hearing @kristapsk thoughts on this. |
docs/api/wallet-rpc.yaml
Outdated
items: | ||
type: string | ||
example: 85cf4c880876eead0a6674cbc341b21b86058530c2eacf18a16007f8f9cb1b1a:0 | ||
nullable: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This (nullable
) may be the line that breaks compatibility. Parameter is simply not required, and beside compatibility issue it makes no sense to supply the parameter with a null value.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @roshii, I appreciate your feedback, and thanks for catching that! I've updated the PR and removed nullable: true
since it wasn't serving any purpose. However, I don't believe that's the reason behind the OpenAPI Diff
failure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That wasn't the reason for the failure indeed. OpenAPI Diff still catches selected_utxos
as required 🤔
I will dig into it soon as as I can.
Done with the changes requested by @roshii and fixed the sweep case that @theborakompanioni mentioned earlier. Please take a look. Thank you for your time, guys. |
This PR fixes #1712 and addresses joinmarket-webui/jam#772
Changes Made: