Skip to content

Commit

Permalink
bring back monitor fork update
Browse files Browse the repository at this point in the history
  • Loading branch information
Faulty Tolly committed Nov 5, 2024
1 parent 4862dbb commit 5397a9a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions block/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ type Manager struct {
GenesisChecksum string
LocalKey crypto.PrivKey

RootDir string
RootDir string
// Store and execution
Store store.Store
State *types.State
Expand Down Expand Up @@ -163,7 +163,7 @@ func NewManager(
SLClient: settlementClient,
indexerService: indexerService,
logger: logger.With("module", "block_manager"),
RootDir: conf.RootDir,
RootDir: conf.RootDir,
blockCache: &Cache{
cache: make(map[uint64]types.CachedBlock),
},
Expand Down Expand Up @@ -257,6 +257,10 @@ func (m *Manager) Start(ctx context.Context) error {
return m.MonitorSequencerSetUpdates(ctx)
})

uerrors.ErrGroupGoLog(eg, m.logger, func() error {
return m.MonitorForkUpdate(ctx)
})

// run based on the node role
if !amIProposer {
return m.runAsFullNode(ctx, eg)
Expand Down

0 comments on commit 5397a9a

Please sign in to comment.