aboutsummaryrefslogtreecommitdiffstats
path: root/trie/cache.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <geffobscura@gmail.com>2015-07-20 17:44:41 +0800
committerJeffrey Wilcke <geffobscura@gmail.com>2015-07-23 18:57:33 +0800
commit8f56eea77d9d4cd0218c9b0ca7b8c0501780b62b (patch)
treeedbed374284460f2d62dfe1329dc54cc56dad9d3 /trie/cache.go
parent0cff61bedaca42c94d162853cd55eb1e013dadb9 (diff)
downloadgo-tangerine-8f56eea77d9d4cd0218c9b0ca7b8c0501780b62b.tar
go-tangerine-8f56eea77d9d4cd0218c9b0ca7b8c0501780b62b.tar.gz
go-tangerine-8f56eea77d9d4cd0218c9b0ca7b8c0501780b62b.tar.bz2
go-tangerine-8f56eea77d9d4cd0218c9b0ca7b8c0501780b62b.tar.lz
go-tangerine-8f56eea77d9d4cd0218c9b0ca7b8c0501780b62b.tar.xz
go-tangerine-8f56eea77d9d4cd0218c9b0ca7b8c0501780b62b.tar.zst
go-tangerine-8f56eea77d9d4cd0218c9b0ca7b8c0501780b62b.zip
ethdb, trie: removed RLE compression
Diffstat (limited to 'trie/cache.go')
-rw-r--r--trie/cache.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/trie/cache.go b/trie/cache.go
index 2949a5d64..fdaba5de1 100644
--- a/trie/cache.go
+++ b/trie/cache.go
@@ -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
}