Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: set from block when updating sdk clients #67

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,10 @@ export class HubPoolIndexerDataHandler implements IndexerDataHandler {
): Promise<FetchEventsResult> {
const { hubPoolClient, configStoreClient } = this;

hubPoolClient.firstBlockToSearch = blockRange.from;
configStoreClient.eventSearchConfig.toBlock = blockRange.to;
hubPoolClient.eventSearchConfig.fromBlock = blockRange.from;
hubPoolClient.eventSearchConfig.toBlock = blockRange.to;

await configStoreClient.update();
await hubPoolClient.update();
const proposedRootBundleEvents =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ export class SpokePoolIndexerDataHandler implements IndexerDataHandler {
): Promise<FetchEventsResult> {
const { configStoreClient, hubPoolClient, spokePoolClient } = this;

spokePoolClient.firstBlockToSearch = blockRange.from;
spokePoolClient.eventSearchConfig.toBlock = blockRange.to;

await configStoreClient.update();
Expand Down