Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
0b04da3
wip
alpe Nov 26, 2025
044903f
x
alpe Nov 27, 2025
2c9a212
Review feedback
alpe Nov 28, 2025
e2b0520
Encapsulate hint in sync package
alpe Nov 28, 2025
aaacbde
Async DA pull
alpe Nov 28, 2025
74be668
Merge branch 'main' into alex/2609_hints
alpe Dec 1, 2025
b9b5f5b
Minor cleanup
alpe Dec 1, 2025
e3336ce
Merge branch 'main' into alex/2609_hints
alpe Dec 8, 2025
c40b96b
Indipendent types for p2p store
alpe Dec 15, 2025
f3fb315
Merge branch 'main' into alex/2609_hints
alpe Dec 15, 2025
56c278f
Merge updates
alpe Dec 15, 2025
413b40d
Merge branch 'main' into alex/2609_hints
alpe Dec 15, 2025
a585190
Bump sonic version
alpe Dec 15, 2025
d09c8ab
Make tidy-all
alpe Dec 15, 2025
f0a505f
Merge branch 'main' into alex/2609_hints
alpe Dec 16, 2025
4ecf0a0
Use envelope for p2p store
alpe Dec 19, 2025
6c85d8d
Merge branch 'main' into alex/2609_hints
alpe Dec 19, 2025
7abfecc
Minor cleanup
alpe Dec 19, 2025
e593848
Better test data
alpe Dec 19, 2025
993c2b1
Merge branch 'main' into alex/2609_hints
alpe Dec 22, 2025
8b99828
Merge branch 'main' into alex/2609_hints
alpe Jan 8, 2026
544c0b9
Linter
alpe Jan 8, 2026
e1446a3
Merge branch 'main' into alex/2609_hints
alpe Jan 19, 2026
570ac06
Resolve merge conflicts
alpe Jan 19, 2026
1f6c405
Merge branch 'main' into alex/2609_hints
alpe Jan 19, 2026
4907c92
Tidy all
alpe Jan 19, 2026
6e4554d
Merge branch 'main' into alex/2609_hints
alpe Jan 19, 2026
6962e6f
Merge branch 'main' into alex/2609_hints
alpe Jan 20, 2026
158bcad
Merge branch 'main' into alex/2609_hints
alpe Jan 21, 2026
66b6db8
Integrate changes
alpe Jan 21, 2026
94fe911
Merge branch 'main' into alex/2609_hints
alpe Jan 22, 2026
a20e483
Merge branch 'main' into alex/2609_hints
alpe Jan 26, 2026
69bf91b
Merge branch 'main' into alex/2609_hints
alpe Jan 27, 2026
b8ec42f
Merge branch 'main' into alex/2609_hints
alpe Jan 28, 2026
eb5aff5
Merge branch 'main' into alex/2609_hints
julienrbrt Feb 2, 2026
9c95101
updates
julienrbrt Feb 2, 2026
19835e8
build fixes
julienrbrt Feb 2, 2026
c6e5696
fixes
julienrbrt Feb 2, 2026
b7b2100
cleanup
julienrbrt Feb 2, 2026
7b1c802
updates
julienrbrt Feb 2, 2026
14b83ff
implement setting
julienrbrt Feb 2, 2026
3a2ba3f
limit abstractions
julienrbrt Feb 2, 2026
c9d3251
linting
julienrbrt Feb 2, 2026
fcb3e75
use same key as sequencer
julienrbrt Feb 2, 2026
1b3802e
fix unit test
julienrbrt Feb 2, 2026
aac3f47
rename working pool to avoid naming confusion
julienrbrt Feb 2, 2026
68b3bcb
persist da/height for da synced nodes as well for consistency
julienrbrt Feb 2, 2026
1b394e0
Merge branch 'main' into alex/2609_hints
julienrbrt Feb 2, 2026
4f4ad36
feat(syncer): verify force inclusion for p2p blocks
julienrbrt Feb 2, 2026
36526ec
fix tests
julienrbrt Feb 2, 2026
025ee3f
fixes
julienrbrt Feb 2, 2026
3abb188
Merge branch 'alex/2609_hints' into julien/fi-p2p
julienrbrt Feb 2, 2026
0298cea
use height instead of hashes
julienrbrt Feb 3, 2026
4905677
Merge branch 'main' into alex/2609_hints
julienrbrt Feb 3, 2026
d6ba01d
fixes
julienrbrt Feb 3, 2026
f662a50
add docs
julienrbrt Feb 3, 2026
0a8e542
remove worker pool
julienrbrt Feb 3, 2026
a729ac2
Merge branch 'alex/2609_hints' into julien/fi-p2p
julienrbrt Feb 3, 2026
f728ec2
fix test
julienrbrt Feb 3, 2026
956c898
Merge branch 'main' into julien/fi-p2p
julienrbrt Feb 3, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
limit abstractions
  • Loading branch information
julienrbrt committed Feb 2, 2026
commit 3a2ba3fe7a842bd097812785343666573255609e
6 changes: 1 addition & 5 deletions .mockery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,7 @@ packages:
dir: ./block/internal/syncing
pkgname: syncing
filename: syncer_mock.go
HeightStore:
config:
dir: ./block/internal/syncing
pkgname: syncing
filename: height_store_mock.go

github.com/evstack/ev-node/block/internal/common:
interfaces:
Broadcaster:
Expand Down
20 changes: 10 additions & 10 deletions block/components.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ func NewSyncComponents(
store store.Store,
exec coreexecutor.Executor,
daClient da.Client,
headerStore *sync.HeaderSyncService,
dataStore *sync.DataSyncService,
headerSyncService *sync.HeaderSyncService,
dataSyncService *sync.DataSyncService,
logger zerolog.Logger,
metrics *Metrics,
blockOpts BlockOptions,
Expand All @@ -150,8 +150,8 @@ func NewSyncComponents(
metrics,
config,
genesis,
headerStore,
dataStore,
headerSyncService.Store(),
dataSyncService.Store(),
logger,
blockOpts,
errorCh,
Expand All @@ -163,7 +163,7 @@ func NewSyncComponents(
}

// Create submitter for sync nodes (no signer, only DA inclusion processing)
var daSubmitter submitting.DASubmitterAPI = submitting.NewDASubmitter(daClient, config, genesis, blockOpts, metrics, logger, headerStore, dataStore)
var daSubmitter submitting.DASubmitterAPI = submitting.NewDASubmitter(daClient, config, genesis, blockOpts, metrics, logger, headerSyncService, dataSyncService)
if config.Instrumentation.IsTracingEnabled() {
daSubmitter = submitting.WithTracingDASubmitter(daSubmitter)
}
Expand Down Expand Up @@ -200,8 +200,8 @@ func NewAggregatorComponents(
sequencer coresequencer.Sequencer,
daClient da.Client,
signer signer.Signer,
headerBroadcaster *sync.HeaderSyncService,
dataBroadcaster *sync.DataSyncService,
headerSyncService *sync.HeaderSyncService,
dataSyncService *sync.DataSyncService,
logger zerolog.Logger,
metrics *Metrics,
blockOpts BlockOptions,
Expand Down Expand Up @@ -229,8 +229,8 @@ func NewAggregatorComponents(
metrics,
config,
genesis,
headerBroadcaster,
dataBroadcaster,
headerSyncService,
dataSyncService,
logger,
blockOpts,
errorCh,
Expand Down Expand Up @@ -266,7 +266,7 @@ func NewAggregatorComponents(
}, nil
}

var daSubmitter submitting.DASubmitterAPI = submitting.NewDASubmitter(daClient, config, genesis, blockOpts, metrics, logger, headerBroadcaster, dataBroadcaster)
var daSubmitter submitting.DASubmitterAPI = submitting.NewDASubmitter(daClient, config, genesis, blockOpts, metrics, logger, headerSyncService, dataSyncService)
if config.Instrumentation.IsTracingEnabled() {
daSubmitter = submitting.WithTracingDASubmitter(daSubmitter)
}
Expand Down
151 changes: 0 additions & 151 deletions block/internal/common/broadcaster_mock.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions block/internal/common/expected_interfaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ type (
// Broadcaster interface for P2P broadcasting
type Broadcaster[H header.Header[H]] interface {
WriteToStoreAndBroadcast(ctx context.Context, payload H, opts ...pubsub.PubOpt) error
AppendDAHint(ctx context.Context, daHeight uint64, hashes ...types.Hash) error
GetByHeight(ctx context.Context, height uint64) (H, uint64, error)
Store() header.Store[H]
Height() uint64
}
4 changes: 2 additions & 2 deletions block/internal/executing/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -549,10 +549,10 @@ func (e *Executor) ProduceBlock(ctx context.Context) error {
// broadcast header and data to P2P network
g, broadcastCtx := errgroup.WithContext(e.ctx)
g.Go(func() error {
return e.headerBroadcaster.WriteToStoreAndBroadcast(broadcastCtx, &types.P2PSignedHeader{Message: header})
return e.headerBroadcaster.WriteToStoreAndBroadcast(broadcastCtx, &types.P2PSignedHeader{SignedHeader: header})
})
g.Go(func() error {
return e.dataBroadcaster.WriteToStoreAndBroadcast(broadcastCtx, &types.P2PData{Message: data})
return e.dataBroadcaster.WriteToStoreAndBroadcast(broadcastCtx, &types.P2PData{Data: data})
})
if err := g.Wait(); err != nil {
e.logger.Error().Err(err).Msg("failed to broadcast header and/data")
Expand Down
113 changes: 0 additions & 113 deletions block/internal/syncing/height_store_mock.go

This file was deleted.

Loading
Loading