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

Add start up check that mint was able to establish LN connection and is waiting for invoices #554

Closed
thesimplekid opened this issue Jan 22, 2025 · 1 comment · Fixed by #601
Labels
enhancement New feature or request mint
Milestone

Comments

@thesimplekid
Copy link
Collaborator

We should a a check that the mint was able to establish a connection to the ln back and is waiting got invoiced before starting the rest of the mint.

tokio::spawn({
let shutdown = Arc::clone(&shutdown);
async move { mint.wait_for_paid_invoices(shutdown).await }
});
let axum_result = axum::Server::bind(
&format!("{}:{}", listen_addr, listen_port)
.as_str()
.parse()?,
)
.serve(mint_service.into_make_service())
.await;

@thesimplekid thesimplekid added enhancement New feature or request mint labels Jan 22, 2025
@thesimplekid thesimplekid added this to the v0.7.0 milestone Jan 22, 2025
@thesimplekid
Copy link
Collaborator Author

related to #506

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request mint
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant