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

filtering with cutomized boolean operation #439

Open
yya518 opened this issue Oct 23, 2020 · 0 comments
Open

filtering with cutomized boolean operation #439

yya518 opened this issue Oct 23, 2020 · 0 comments

Comments

@yya518
Copy link

yya518 commented Oct 23, 2020

Hello, I have a question about the Python fluent Interface. Say if I want to filter out a block's input address that is in a set of candidate addresses, I would like to use the following code:

candidate_set = set(some addresses) 
chain[500000].inputs.address.where( lambda addr: addr in candidate_set )

This does not seem to work. I wonder if the filtering function in blocksci can support customized boolean operation. Thanks.

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

No branches or pull requests

1 participant