Skip to content

Commit

Permalink
move inline
Browse files Browse the repository at this point in the history
  • Loading branch information
srene committed May 15, 2024
1 parent a082a5e commit 09d08ae
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 @@ -12,6 +12,7 @@ import (
"github.com/dymensionxyz/dymint/store"

"code.cloudfoundry.org/go-diodes"
uevent "github.com/dymensionxyz/dymint/utils/event"

"github.com/dymensionxyz/dymint/p2p"
"github.com/libp2p/go-libp2p/core/crypto"
Expand Down Expand Up @@ -144,7 +145,9 @@ func (m *Manager) Start(ctx context.Context) error {

//Fullnode loop can start before syncing from DA
if !isSequencer {
m.startNonSequencerLoop(ctx)
go uevent.MustSubscribe(ctx, m.Pubsub, "applyGossipedBlocksLoop", p2p.EventQueryNewNewGossipedBlock, m.onNewGossipedBlock, m.logger)
go m.RetrieveLoop(ctx)

Check notice

Code scanning / CodeQL

Spawning a Go routine Note

Spawning a Go routine may be a possible source of non-determinism
go m.SyncTargetLoop(ctx)

Check notice

Code scanning / CodeQL

Spawning a Go routine Note

Spawning a Go routine may be a possible source of non-determinism
}

// TODO: populate the accumulatedSize on startup
Expand All @@ -158,7 +161,8 @@ func (m *Manager) Start(ctx context.Context) error {

//Aggregator producer loop is started only when finished syncing from DA
if isSequencer {
m.startSequencerLoop(ctx)
go m.ProduceBlockLoop(ctx)
go m.SubmitLoop(ctx)
}
return nil
}
Expand Down

0 comments on commit 09d08ae

Please sign in to comment.