Skip to content
This repository was archived by the owner on May 23, 2023. It is now read-only.

Commit a1eded1

Browse files
committed
do not compress EphemDB
1 parent 0d22ed3 commit a1eded1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ethereum/db.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from ethereum.compress import compress, decompress
21
from ethereum import utils
32
from ethereum.slogging import get_logger
43
from rlp.utils import str_to_bytes
@@ -14,10 +13,10 @@ def __init__(self):
1413
self.db = {}
1514

1615
def get(self, key):
17-
return decompress(self.db[key])
16+
return self.db[key]
1817

1918
def put(self, key, value):
20-
self.db[key] = compress(value)
19+
self.db[key] = value
2120

2221
def delete(self, key):
2322
del self.db[key]

0 commit comments

Comments
 (0)