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

feat(relayer): Asynchronous message processing, error handling, nonce management, and indexer folder structuring #259

Merged
merged 24 commits into from
Nov 17, 2022

Conversation

cyberhorsey
Copy link
Contributor

@cyberhorsey cyberhorsey commented Nov 11, 2022

Resolves #239 , resolves #251 , resolves #260

The main goal of this PR is allowing a specified blockBatchSize and changing the synchronous for loop in filter_then_subscribe to a WaitGroup. Controlling the blockBatchSize flag will determine how many blocks to watch at the same time, thus controlling the number of goroutines spawned.

It also has some cleanup in the indexer folder as the methods were growing unwieldy, as well as handling the nonce issue since now we need a mutex to make sure we don't submit transactions with out-of-order or duplicate nonces.

…lt.env update, indexer folder file restructuring, nonce handling for message processor
@vercel
Copy link

vercel bot commented Nov 11, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated
website ⬜️ Ignored (Inspect) Nov 16, 2022 at 5:00PM (UTC)

@dantaik dantaik changed the title [relayer] Asynchronous message processing, error handling, nonce management, and indexer folder structuring feat(relayer): Asynchronous message processing, error handling, nonce management, and indexer folder structuring Nov 12, 2022
…Message. error handling return in handle_event after filling errChan
@cyberhorsey cyberhorsey marked this pull request as ready for review November 14, 2022 16:40
packages/relayer/cli/cli.go Outdated Show resolved Hide resolved
packages/relayer/cli/cli.go Outdated Show resolved Hide resolved
packages/relayer/cli/cli.go Outdated Show resolved Hide resolved
packages/relayer/cli/cli.go Outdated Show resolved Hide resolved
packages/relayer/indexer/handle_event.go Outdated Show resolved Hide resolved
dantaik
dantaik previously approved these changes Nov 15, 2022
davidtaikocha
davidtaikocha previously approved these changes Nov 15, 2022
@cyberhorsey cyberhorsey requested a review from dantaik November 15, 2022 16:01
@cyberhorsey cyberhorsey merged commit ed6d551 into main Nov 17, 2022
@cyberhorsey cyberhorsey deleted the async_relayer branch November 17, 2022 04:12
@github-actions github-actions bot mentioned this pull request Jan 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants