File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -143,23 +143,13 @@ func (b *Bootstrap) StartEventIngestion(ctx context.Context) error {
143143
144144 chainID := b .config .FlowNetworkID
145145
146- // the event subscriber takes the first block to sync from the Access node, which is the block
147- // after the latest cadence block
148- nextCadenceHeight := latestCadenceHeight + 1
149- // Special case when using a local Emulator as Access Node. The Emulator
150- // always starts at block height 0, so if we try to subscribe at block
151- // height 1, we'll get an error, as it doesn't exist.
152- if latestCadenceHeight == config .EmulatorInitCadenceHeight {
153- nextCadenceHeight -= 1
154- }
155-
156146 // create event subscriber
157147 subscriber := ingestion .NewRPCEventSubscriber (
158148 b .logger ,
159149 b .client ,
160150 chainID ,
161151 b .keystore ,
162- nextCadenceHeight ,
152+ latestCadenceHeight ,
163153 )
164154
165155 callTracerCollector , err := replayer .NewCallTracerCollector (b .logger )
You can’t perform that action at this time.
0 commit comments