-
Notifications
You must be signed in to change notification settings - Fork 261
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
add scanblocks call #317
base: master
Are you sure you want to change the base?
add scanblocks call #317
Conversation
/// Start a scan of the block filter index for an [output descriptor](https://github.com/bitcoin/bitcoin/blob/master/doc/descriptors.md). | ||
pub struct ScanBlocksRequest<'a> { | ||
/// List of descriptors to scan | ||
pub scanobjects: &'a [ScanBlocksRequestDescriptor], |
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.
Maybe scanobjects can be a Vec<ScanBlocksRequestDescriptor>
(since ScanBlocksRequestDescriptor already owns its descriptor), then we could do away with the lifetime 'a
.
Can possibly also derive Default
for this whole struct.
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.
Pretty much just copied this from another json array example in the file
rust-bitcoincore-rpc/json/src/lib.rs
Line 1190 in 23927f3
pub pubkeys: &'a [PublicKey], |
Is this giving you issues and did you test it your way? I seem to remember testing it with a Vec
and having issues.
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.
If you want to make a PR into my branch with how you're doing it I'm happy to merge it into my branch
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.
no, no issue. I think I tried it both ways.
No description provided.