Repository navigation
Conversation
Dash has no SegWit. Remove witness address and script construction, the BIP143 sighash, block witness commitments, wtxid relay and version 2 compact blocks. Witness, the BIP144 transaction form and WitnessProgram stay, with TODOs, so accepted asset locks and persisted addresses keep decoding. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## chore/remove-taproot #1259 +/- ##
========================================================
+ Coverage 80.77% 80.79% +0.02%
========================================================
Files 290 290
Lines 75716 75313 -403
========================================================
- Hits 61159 60850 -309
+ Misses 14557 14463 -94
|
1 of 4 tasks
Collaborator
Author
|
#400 got updated |
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.
Dash has no SegWit, but
dashcorestill carries the Bitcoin code for it. Nothing in the workspace uses it beyond its own tests, so this removes it.Removed:
p2wpkh,p2shwpkh,p2wsh,p2shwsh,new_v0_p2wpkh,new_v0_p2wsh,to_v0_p2wsh,wscript_hash.WPubkeyHash,WScriptHash,WitnessMerkleNode,WitnessCommitmentandSegwitV0Sighash.InputWeightPrediction::P2WPKH_MAXandground_p2wpkh.ServiceFlags::WITNESS,NetworkMessage::WtxidRelay,Inventory::WTx,Inventory::WitnessTransactionandInventory::WitnessBlock.Kept, with TODOs, because existing data still depends on them:
Witnessand the BIP144 transaction form, for the asset locks Dash Platform has accepted in that form.WitnessProgramandPayload::WitnessProgram, so addresses already persisted as witness programs keep decoding.Breaking, because public items go away.
Stacked on #1253, so the base is
chore/remove-taproot; retarget todevonce that merges. It overlaps #1255 indash/src/network/. If #1255 merges first, take its version of those changes, which also removesServiceFlags::GETUTXO.Testing:
cargo fmt --check,cargo clippy --workspace --all-features --all-targets -- -D warnings, andcargo test -p dashcore -p dashcore-crypto -p key-walletpass.dash-spvtests were not run locally.🤖 Generated with Claude Code