Applies fixes after PR review

This commit is contained in:
Sergi Delgado Segura
2019-11-07 10:31:44 +00:00
parent 00a27b68e6
commit 99bda73eff
5 changed files with 15 additions and 38 deletions

View File

@@ -2,11 +2,15 @@ import json
import plyvel
from pisa.logger import Logger
from pisa.conf import WATCHER_PREFIX, RESPONDER_PREFIX, WATCHER_LAST_BLOCK_KEY, RESPONDER_LAST_BLOCK_KEY, \
LOCATOR_MAP_PREFIX
logger = Logger("DBManager")
WATCHER_PREFIX = "w"
WATCHER_LAST_BLOCK_KEY = "bw"
RESPONDER_PREFIX = "r"
RESPONDER_LAST_BLOCK_KEY = "br"
LOCATOR_MAP_PREFIX = 'm'
class DBManager:
def __init__(self, db_path):