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

Do not block startup to check chain head #101

Merged
merged 1 commit into from
Sep 28, 2023
Merged

Do not block startup to check chain head #101

merged 1 commit into from
Sep 28, 2023

Conversation

peterbroadhurst
Copy link
Contributor

@peterbroadhurst peterbroadhurst commented Sep 28, 2023

Fixes #98

Depends on hyperledger/firefly-signer#48 (was causing a panic in UTs)

Instead of checking the chain head in-line in EventStreamStart() function, this change pushes that preStartProcessing code down into the streamLoop that gets started asynchronously.

This means we don't block FFTM from starting up.

Signed-off-by: Peter Broadhurst <peter.broadhurst@kaleido.io>
@peterbroadhurst peterbroadhurst requested a review from a team as a code owner September 28, 2023 18:17
@nguyer nguyer merged commit 25ea3f9 into main Sep 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Undesirable "hang" behavior on startup if blockchain JSON/RPC endpoint unavailable
2 participants