diff --git a/kv/kv_interface.go b/kv/kv_interface.go index 9e19d26f3..8b3188b0c 100644 --- a/kv/kv_interface.go +++ b/kv/kv_interface.go @@ -81,9 +81,10 @@ type DBVerbosityLvl int8 type Label uint8 const ( - ChainDB Label = 0 - TxPoolDB Label = 1 - SentryDB Label = 2 + ChainDB Label = 0 + TxPoolDB Label = 1 + SentryDB Label = 2 + ConsensusDB Label = 3 ) func (l Label) String() string { diff --git a/kv/mdbx/kv_mdbx.go b/kv/mdbx/kv_mdbx.go index a5f9489d0..13f041569 100644 --- a/kv/mdbx/kv_mdbx.go +++ b/kv/mdbx/kv_mdbx.go @@ -169,6 +169,10 @@ func (opts MdbxOpts) Open() (kv.RwDB, error) { return nil, err } } else { + if opts.label == kv.ChainDB && opts.pageSize == 4096 { + panic(1) + } + fmt.Printf("al: %s, %d\n", opts.label, opts.pageSize) if err = env.SetGeometry(-1, -1, int(opts.mapSize), int(2*datasize.GB), -1, int(opts.pageSize)); err != nil { return nil, err }