citp / BlockSci

A high-performance tool for blockchain science and exploration

Home Page:https://citp.github.io/BlockSci/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

filtering with cutomized boolean operation

yya518 opened this issue · comments

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.