diff options
author | Péter Szilágyi <peterke@gmail.com> | 2016-02-19 20:29:19 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2016-03-09 16:33:39 +0800 |
commit | e90958cd29a228b051faeaa25d66e053cf9d2228 (patch) | |
tree | dd7dd52d31628375ead8a06e681441102faf9037 /core | |
parent | 05c86c2c9fa14ea03fdc5d0cd77cdecc34e4f164 (diff) | |
download | dexon-e90958cd29a228b051faeaa25d66e053cf9d2228.tar.gz dexon-e90958cd29a228b051faeaa25d66e053cf9d2228.tar.zst dexon-e90958cd29a228b051faeaa25d66e053cf9d2228.zip |
cmd, eth, ethdb, node: prioritise chaindata for resources, bump cache
Diffstat (limited to 'core')
-rw-r--r-- | core/bench_test.go | 2 | ||||
-rw-r--r-- | core/database_util_test.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/core/bench_test.go b/core/bench_test.go index f991e5e7f..0ff847ed5 100644 --- a/core/bench_test.go +++ b/core/bench_test.go @@ -153,7 +153,7 @@ func benchInsertChain(b *testing.B, disk bool, gen func(int, *BlockGen)) { b.Fatalf("cannot create temporary directory: %v", err) } defer os.RemoveAll(dir) - db, err = ethdb.NewLDBDatabase(dir, 0) + db, err = ethdb.NewLDBDatabase(dir, 128, 128) if err != nil { b.Fatalf("cannot create temporary database: %v", err) } diff --git a/core/database_util_test.go b/core/database_util_test.go index 6b3793635..ce1ffea8a 100644 --- a/core/database_util_test.go +++ b/core/database_util_test.go @@ -551,7 +551,7 @@ func TestMipmapChain(t *testing.T) { defer os.RemoveAll(dir) var ( - db, _ = ethdb.NewLDBDatabase(dir, 16) + db, _ = ethdb.NewLDBDatabase(dir, 0, 0) key1, _ = crypto.HexToECDSA("b71c71a67e1177ad4e901695e1b4b9ee17ae16c6668d313eac2f96dbcda3f291") addr = crypto.PubkeyToAddress(key1.PublicKey) addr2 = common.BytesToAddress([]byte("jeff")) |