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
f1573c289fd719ab8e96e99e5717b7fe416986ea Fix deserialization for ListUnspentItem and implement into_model for ListUnspent (GideonBature)
Pull request description:
While working on [#187](rust-bitcoin/corepc#187), I wrote a test for the listunspent method to better understand the issue. The test timed out in my local environment, so I pushed it here to run in CI and confirm the behavior. I found that although the account field has been deprecated and is no longer included in the response, ListUnspentItem still expects it to be present, which causes a deserialization error.
While writing this test, I also discovered a related issue:
The into_model method is implemented for ListUnspentItem and ListUnspentItemError, but not for the top-level ListUnspent type. This makes it harder to convert the full response into a usable model and limits how we can work with the data.
Closes #187
Closes #189
ACKs for top commit:
tcharding:
ACK f1573c289fd719ab8e96e99e5717b7fe416986ea
Tree-SHA512: 7bab482a4547d03f15b66787241a2b5b30ce0479f9f654f3a0b3015140143da4c10aa70bb42b061f8d5f5de89f236d2b6a822c41aa3656d6e7b875ad7bee12f4
0 commit comments