1
0

json_db: store Transaction objects in memory, not raw hex

to avoid deserializing the same tx multiple times
This commit is contained in:
SomberNight
2019-03-01 17:55:28 +01:00
parent 2ad73050b3
commit 121b8048b0
2 changed files with 25 additions and 16 deletions

View File

@@ -199,7 +199,7 @@ class MyEncoder(json.JSONEncoder):
return obj.isoformat(' ')[:-3]
if isinstance(obj, set):
return list(obj)
return super(MyEncoder, self).default(obj)
return super().default(obj)
class PrintError(object):
'''A handy base class'''