mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 19:50:36 +00:00
Remove storageMode override (#1889)
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
This commit is contained in:
parent
b1dc618b95
commit
618acbffc1
@ -21,11 +21,13 @@ import (
|
||||
"context"
|
||||
"crypto/tls"
|
||||
"crypto/x509"
|
||||
"errors"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"math/big"
|
||||
"os"
|
||||
"path"
|
||||
"reflect"
|
||||
"runtime"
|
||||
"sync"
|
||||
"sync/atomic"
|
||||
@ -295,13 +297,13 @@ func New(stack *node.Node, config *ethconfig.Config, gitCommit string) (*Ethereu
|
||||
return nil, err
|
||||
}
|
||||
|
||||
//sm, err := ethdb.GetStorageModeFromDB(chainDb)
|
||||
//if err != nil {
|
||||
// return nil, err
|
||||
//}
|
||||
//if !reflect.DeepEqual(sm, config.StorageMode) {
|
||||
// return nil, errors.New("mode is " + config.StorageMode.ToString() + " original mode is " + sm.ToString())
|
||||
//}
|
||||
sm, err := ethdb.GetStorageModeFromDB(chainDb)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if !reflect.DeepEqual(sm, config.StorageMode) {
|
||||
return nil, errors.New("mode is " + config.StorageMode.ToString() + " original mode is " + sm.ToString())
|
||||
}
|
||||
|
||||
if err = stagedsync.UpdateMetrics(chainDb); err != nil {
|
||||
return nil, err
|
||||
|
Loading…
Reference in New Issue
Block a user