mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-06 19:06:42 +01:00
Stop using stateDB in API
This commit is contained in:
@@ -183,9 +183,8 @@ func NewNode(mode Mode, cfg *config.Node) (*Node, error) {
|
||||
}
|
||||
|
||||
sync, err := synchronizer.NewSynchronizer(client, historyDB, stateDB, synchronizer.Config{
|
||||
StatsRefreshPeriod: cfg.Synchronizer.StatsRefreshPeriod.Duration,
|
||||
StoreAccountUpdates: cfg.Synchronizer.StoreAccountUpdates,
|
||||
ChainID: chainIDU16,
|
||||
StatsRefreshPeriod: cfg.Synchronizer.StatsRefreshPeriod.Duration,
|
||||
ChainID: chainIDU16,
|
||||
})
|
||||
if err != nil {
|
||||
return nil, tracerr.Wrap(err)
|
||||
@@ -430,7 +429,6 @@ func NewNodeAPI(
|
||||
coordinatorEndpoints, explorerEndpoints,
|
||||
engine,
|
||||
hdb,
|
||||
sdb,
|
||||
l2db,
|
||||
config,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user