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

tapchannel: validate proof courier before opening or accepting channels #1412

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

guggero
Copy link
Member

@guggero guggero commented Feb 26, 2025

Fixes an issue that @Liongrass ran into while running litd on signet: Because the fallback universe proof courier for that network is a hashmail based courier and that type doesn't work with channel funding outputs (due to #1113), we need to make sure a correct courier is configured when opening or accepting Taproot Asset channels.

To make sure users don't run into the issue #1113, we require a universe
based proof courier to be configured.
We'll want to test universe proof courier connectivity in a next commit,
for which we need a mock gRPC server. We extract the already existing
code into the internal test helper package.
We'll need to make sure the connection attempt happens blocking,
otherwise we can't be certain that the connection will succeed in the
future.
This is later improved and made configurable in #1203.
For now, we only enable this in the pre-startup check for the universe
proof courier.
To make sure the universe proof courier address configured isn't only
formally valid but can also be connected to, we do a quick connection
check before requesting or accepting a channel funding action.
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.

1 participant