connector

This commit is contained in:
4tochka 2019-05-27 22:49:21 +04:00
parent abf6830f4f
commit 13c8f095fd

View File

@ -172,8 +172,8 @@ class Connector:
lb = self.db.get(b"last_block")
if lb is None:
lb = 0
self.db.set(b"last_block", int_to_bytes(0))
self.db.set(b"last_cached_block", int_to_bytes(0))
self.db.put(b"last_block", int_to_bytes(0))
self.db.puts(b"last_cached_block", int_to_bytes(0))
else:
lb = bytes_to_int(lb)
lc = bytes_to_int(self.db.get(b"last_cached_block"))