Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
friedger opened this issue Jan 20, 2025 · 1 comment
Open

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

friedger opened this issue Jan 20, 2025 · 1 comment

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

@friedger
Copy link
Contributor Author

Similarily, for (get-stacks-block-info? header-hash u3). It would help for using and testing https://github.com/MarvinJanssen/clarity-stacks

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

No branches or pull requests

1 participant