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

Allow existing mempool sync on SIGINT #917

Merged
merged 1 commit into from
Aug 15, 2023
Merged

Allow existing mempool sync on SIGINT #917

merged 1 commit into from
Aug 15, 2023

Conversation

romanz
Copy link
Owner

@romanz romanz commented Aug 14, 2023

Otherwise, electrs cannot be gracefully stopped during the first mempool sync (currently having >100k transactions).

@romanz romanz merged commit 59143fd into master Aug 15, 2023
10 checks passed
@romanz romanz deleted the exit-mempool-sync branch August 15, 2023 17:46
let mut added = 0;
for chunk in to_add.chunks(100) {
if exit_flag.poll().is_err() {
warn!("interrupted while syncing mempool");
Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry for late comment but maybe this should be info? IIUC there's nothing wrong/dangerous about it.

Copy link
Owner Author

Choose a reason for hiding this comment

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

Good catch, thanks!

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.

2 participants