Add store to disk
This commit is contained in:
@@ -18,7 +18,10 @@ from chainlib.eth.connection import EthHTTPConnection
|
||||
from chainlib.eth.block import block_latest
|
||||
|
||||
# local imports
|
||||
from eth_stat_syncer.store import GasAggregator
|
||||
from eth_stat_syncer.store import (
|
||||
GasAggregator,
|
||||
RunStore,
|
||||
)
|
||||
|
||||
logging.basicConfig(level=logging.WARNING)
|
||||
logg = logging.getLogger()
|
||||
@@ -68,7 +71,8 @@ class GasPriceFilter(SyncFilter):
|
||||
|
||||
|
||||
def main():
|
||||
gas_aggregator = GasAggregator(360)
|
||||
gas_store = RunStore()
|
||||
gas_aggregator = GasAggregator(gas_store, 360)
|
||||
gas_filter = GasPriceFilter(chain_spec, gas_aggregator)
|
||||
|
||||
o = block_latest()
|
||||
|
||||
Reference in New Issue
Block a user