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

Bitcoin Block details for get-burn-chain-info? #1641

Open
friedger opened this issue Jan 20, 2025 · 0 comments
Open

Bitcoin Block details for get-burn-chain-info? #1641

friedger opened this issue Jan 20, 2025 · 0 comments

Comments

@friedger
Copy link
Contributor

friedger commented Jan 20, 2025

Is your feature request related to a problem? Please describe.
For catamaranswaps, I want to verify that a bitcoin tx was mined using clarity-bitcoin-lib-v5. However, clarinet returns the same block header hash for all blocks (get-burn-chain-info? header-hash u100). It is not clear what the block looks like that is used to create the hash.

Describe the solution you'd like
Simple solution: provide docs describing the mocked(?) block used to generate the hash.

Advanced solution: add section to Clarinet.toml that allows to define a bitcoin block that is used to generate the hash.

Describe alternatives you've considered
Only test for failure of on-chain verificaion

Additional context
https://github.com/friedger/clarity-catamaranswaps/pull/6/files#diff-a89b2fb3bfe4fbbcc904e8a68ec9ad8724076cfe10d8c7ddfbae1fe66bcf4879R175

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🆕 New
Development

No branches or pull requests

1 participant