-
Notifications
You must be signed in to change notification settings - Fork 27
Implement scantxoutset method and test #164
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
base: master
Are you sure you want to change the base?
Conversation
63e4f61
to
67b03b6
Compare
Why is there identical code in the v17 and v18 |
They basically work the same way, the difference is in their return type, v18 has an additional field ( |
Bro I explained this to you already on the other two PRs you did. Perhaps go back over them and see if you can work it out. |
oh, I now understand, I was looking at how For this recent push, I removed the repeated code across all versions having different fields in their type. |
67b03b6
to
43c8b61
Compare
Oh well that would explain your confusion, the |
Done in #169. FTR bugs happen, if you see things that are wrong or look weird just ask (or PR to fix them). Apologies for being so fierce yesterday. |
Returns column needs updating (and Notes). |
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.
Holy moly you picked a difficult one. I'm going to have to come back to this when I can put more thought into it. Feel free to ignore my suggestions until then.
/// > 2. "scanobjects" (array, required) Array of scan objects | ||
#[derive(Deserialize, Debug, Clone, PartialEq)] | ||
#[serde(untagged)] | ||
pub enum ScanTxOutSet { |
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.
Oh this is interesting. This is a new idea for the crate, it could be done for all the methods that have verbose results. I'm not sure it adds any value though. I'd just remove this and leave the three individual return types. Plus I'd document 'returned when the foo action as taken'.
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.
after looking at v28 I'm not sure - leave it with me for a bit.
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.
Alright... Noted. That would be great using it for the methods having verbose results.
No problem. I will do this going forward. |
Noted! |
Noted.... |
43c8b61
to
9b7f019
Compare
for the notes, is there any need to change it? since it describes perfectly that the scantxoutset is experimental. |
9b7f019
to
1a3bd20
Compare
Oh you are right, lets leave the notes as they are. |
1a3bd20
to
901bf21
Compare
Going by the conversations with tcharding for PR #116 on implementing one method at a time for easier review: This is the fourth method implementation
scantxoutset
. Once this is approved, I’ll proceed with the next one.