feat: add local test-utils crates (arbitrary, btc, btcio)#38
Merged
feat: add local test-utils crates (arbitrary, btc, btcio)#38
Conversation
|
Commit: 9de13ed
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Introduces three new workspace-local test utility crates under
crates/test-utils/:strata--test-utils-arb— genericArbitrarygenerator backed byOsRngstrata--test-utils-btc—BtcMainnetSegmentfixture loader providing real mainnet blocks (around difficulty-adjustment boundary 40_320) and 1_ 000 contiguous headers (heights 40_000–50_000) for header-chain verification tests.strata-test-utils-btcio— regtest Bitcoin transaction utilities (funding, signing, MuSig2 multi-sig, broadcasting)Removes three external
strata-test-utils*git dependencies (strata-test-utils,strata-test-utils-btc,strata-test-utils-btcio) from thealpen, replacing all usages with the new local crates.Refactors all downstream consumers (
btc-verification,common,proof/statements,worker, all subprotocol crates, alltxscrates, and integration tests) to import from the newstrata-asm-test-utils-*crates.Improves
header_verificationtests to useBtcMainnetSegmentdirectly, avoiding the cyclic dev dependency.Type of Change
Notes to Reviewers
Checklist
Related Issues