Configurable DB Mmap Size for Beacon Node and Validator Client (#8448)

* add flag to beacon and validator

* gaz

* fuzz

* add dep viz

* add to tools
This commit is contained in:
Raul Jordan
2021-02-15 14:29:47 -06:00
committed by GitHub
parent 7c3827a9a4
commit 36b6a71af4
35 changed files with 101 additions and 40 deletions

View File

@@ -8,6 +8,7 @@ go_library(
visibility = ["//visibility:private"],
deps = [
"//beacon-chain/db:go_default_library",
"//beacon-chain/db/kv:go_default_library",
"//shared/fileutil:go_default_library",
],
)

View File

@@ -6,6 +6,7 @@ import (
"os"
"github.com/prysmaticlabs/prysm/beacon-chain/db"
"github.com/prysmaticlabs/prysm/beacon-chain/db/kv"
"github.com/prysmaticlabs/prysm/shared/fileutil"
)
@@ -20,7 +21,7 @@ func main() {
fmt.Printf("Reading db at %s and writing ssz output to %s.\n", os.Args[1], os.Args[2])
d, err := db.NewDB(context.Background(), os.Args[1])
d, err := db.NewDB(context.Background(), os.Args[1], &kv.Config{})
if err != nil {
panic(err)
}