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 optional 3rd party endpoints for tx broadcasting and reading the chain #521

Open
kilrau opened this issue Mar 20, 2024 · 1 comment
Open
Assignees
Labels
enhancement New feature or request P1

Comments

@kilrau
Copy link
Member

kilrau commented Mar 20, 2024

We want to enable users to broadcast and read the chain via 3rd party endpoints. But @michael1011 brought up a valid point as where some users might not want their transaction info to be sent to a third party and prefer to still broadcast via Boltz, so we probably want to allow changing endpoints via settings menu but stick with ours by default.

Options in settings menu:

  1. Boltz
  2. mempool.space
  3. blockstream.info

CORS might be an issue as always. And we can't really do that before we have cheapCT as our endpoints need to be used for lowball for now.

@kilrau kilrau added the enhancement New feature or request label Mar 20, 2024
@kilrau kilrau changed the title New independent endpoint for tx broadcasting, use Boltz endpoint only as fallback Add new independent endpoints for tx broadcasting Mar 20, 2024
@kilrau kilrau changed the title Add new independent endpoints for tx broadcasting Add new independent endpoints for tx broadcasting and reading the chain Apr 25, 2024
@kilrau kilrau changed the title Add new independent endpoints for tx broadcasting and reading the chain Add optional 3rd party endpoints for tx broadcasting and reading the chain May 14, 2024
@kilrau
Copy link
Member Author

kilrau commented May 22, 2024

Crucial for this issue is the case: boltz backend down and make uncooperative claims and refunds work via third party endpoints. Since cooperative path is always preferred we want to handle these similarly to boltz-client:
refunds: retries coop refund every block until timeout block height reached, then goes scriptpath
claims: tries coop 3 times (to account for connection flakiness), if these fail goes scriptpath

@kilrau kilrau added the P1 label May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request P1
Projects
None yet
Development

No branches or pull requests

2 participants