Skip to content

Commit

Permalink
Merge pull request #745 from onflow/petera/fix-bootstrap-cadence-height
Browse files Browse the repository at this point in the history
Fix bootstrapping to subscribe to correct start block
  • Loading branch information
peterargue authored Jan 30, 2025
2 parents b23dc80 + b0b3a4c commit 0b5077a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bootstrap/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,17 @@ func (b *Bootstrap) StartEventIngestion(ctx context.Context) error {

chainID := b.config.FlowNetworkID

// the event subscriber takes the first block to sync from the Access node, which is the block
// after the latest cadence block
nextCadenceHeight := latestCadenceHeight + 1

// create event subscriber
subscriber := ingestion.NewRPCEventSubscriber(
b.logger,
b.client,
chainID,
b.keystore,
latestCadenceHeight,
nextCadenceHeight,
)

callTracerCollector, err := replayer.NewCallTracerCollector(b.logger)
Expand Down

0 comments on commit 0b5077a

Please sign in to comment.