ethdb, trie: removed RLE compression

This commit is contained in:
Jeffrey Wilcke
2015-07-20 11:44:41 +02:00
parent 0cff61beda
commit 8f56eea77d
2 changed files with 7 additions and 7 deletions

View File

@ -17,7 +17,6 @@
package trie
import (
"github.com/ethereum/go-ethereum/compression/rle"
"github.com/ethereum/go-ethereum/ethdb"
"github.com/ethereum/go-ethereum/logger/glog"
"github.com/syndtr/goleveldb/leveldb"
@ -49,7 +48,8 @@ func (self *Cache) Get(key []byte) []byte {
func (self *Cache) Put(key []byte, data []byte) {
// write the data to the ldb batch
self.batch.Put(key, rle.Compress(data))
//self.batch.Put(key, rle.Compress(data))
self.batch.Put(key, data)
self.store[string(key)] = data
}