Skip to content

Commit

Permalink
move monitor balances to general path
Browse files Browse the repository at this point in the history
  • Loading branch information
Faulty Tolly committed Nov 22, 2024
1 parent efd2eb0 commit 5b59757
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 4 additions & 0 deletions block/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,10 @@ func (m *Manager) Start(ctx context.Context) error {
return m.MonitorForkUpdateLoop(ctx)
})

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

// run based on the node role
if !amIProposer {
return m.runAsFullNode(ctx, eg)
Expand Down
4 changes: 0 additions & 4 deletions block/modes.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,6 @@ func (m *Manager) runAsProposer(ctx context.Context, eg *errgroup.Group) error {
// Monitor and handling of the rotation
go m.MonitorProposerRotation(ctx)

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

return nil
}

Expand Down

0 comments on commit 5b59757

Please sign in to comment.