Skip to content
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

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

chrisguida
Copy link

No description provided.

/// 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],

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.

Copy link
Author

@chrisguida chrisguida Jan 27, 2024

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

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.

Copy link
Author

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

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants