diff --git a/eth_stat_syncer/runnable/server.py b/eth_stat_syncer/runnable/server.py index cff4f34..a1ba443 100644 --- a/eth_stat_syncer/runnable/server.py +++ b/eth_stat_syncer/runnable/server.py @@ -13,6 +13,7 @@ from http.server import ( import confini from jsonrpc_std.parse import jsonrpc_from_str from jsonrpc_std.interface import jsonrpc_response +from jsonrpc_std.error import JSONRPCException # local imports from eth_stat_syncer.store import RunStore @@ -122,7 +123,7 @@ class StatRequestHandler(BaseHTTPRequestHandler): self.send_response(200, 'alas with jsonrpc error') else: - r = self.runstore.get('high', 'minute') + r = self.runstore.get('high', 'block') r = int(r) if r == 0: r = 1