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

Submit coinbase proofs for issue, redeem and replace #501

Closed
gregdhill opened this issue Jul 24, 2023 · 0 comments · Fixed by #505
Closed

Submit coinbase proofs for issue, redeem and replace #501

gregdhill opened this issue Jul 24, 2023 · 0 comments · Fixed by #505
Assignees

Comments

@gregdhill
Copy link
Member

gregdhill commented Jul 24, 2023

To accompany this fix we need to relay two transactions (and merkle proofs) for each issue, redeem and replace request. We can do this via Bitcoin Core using the getblock RPC or the Esplora /block/:hash/txids endpoint and fetching the transaction for the first txid listed. The coinbase transaction is always the first transaction in each block but to verify this we can check that there is only one input and the previous output is null - see rust-bitcoin or our parsing code here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants