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 where epicbox listener stop receiving txs. #96

Merged
merged 1 commit into from
Nov 21, 2023

Conversation

johanneshahn
Copy link
Member

Description

This fix solves the problem, where the epicbox listener does not refresh his subscription and blocks connection with the epicbox server.

Type of change

  • [ x] Bug fix (non-breaking change which fixes an issue)

Tested on MacOs.
24h listener run with repeating receive tx,
send -m epicbox/txs/outputs/scan/info during listener runs

info!("Subscription Ok.");
let duration =
std::time::Duration::from_secs(EPICBOX_SUBSCRIPTION_INTERVAL);
std::thread::sleep(duration);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This behavior is fine for now. But, it looks to me like it is stopping response processing during the sleep. I'd like to handle this more gracefully moving forward.

But, we can handle that when we don't have a pending necessary release. ACK for now.

@who-biz who-biz merged commit dca9ebf into master Nov 21, 2023
@who-biz who-biz deleted the epicbox-listener-fix branch November 21, 2023 20:49
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.

3 participants