mirror of git://holbrook.no/eth-monitor.git
10 lines
266 B
Python
10 lines
266 B
Python
|
class Filter:
|
||
|
|
||
|
def __init__(self, store, include_block_data=False):
|
||
|
self.store = store
|
||
|
self.include_block_data = include_block_data
|
||
|
|
||
|
|
||
|
def filter(self, block, tx=None):
|
||
|
self.store.put_block(block, include_data=self.include_block_data)
|