eth-monitor

Monitor and cache ethereum transactions with match filters
git clone git://git.defalsify.org/eth-monitor.git
Info | Log | Files | Refs | README | LICENSE

block.py (304B)


      1 # standard imports
      2 import os
      3 
      4 
      5 class Filter:
      6 
      7     def __init__(self, store, include_block_data=False):
      8         self.store = store
      9         self.include_block_data = include_block_data
     10 
     11 
     12     def filter(self, conn, block, **kwargs):
     13         self.store.put_block(block, include_data=self.include_block_data)