-
Notifications
You must be signed in to change notification settings - Fork 3
Fix workspace build and test compilation errors #105
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
Fix workspace build and test compilation errors #105
Conversation
This commit fixes multiple compilation errors across the workspace: Build Fixes: - Fix PSBT module import in dash-fuzz: change from dashcore::psbt to key_wallet::psbt - Add key-wallet dependency to fuzz/Cargo.toml - Fix address module import in key-wallet-ffi: remove non-existent address module - Add missing Error pattern matches: CoinJoinNotEnabled, Serialization, InvalidParameter - Fix type mismatches: secp256k1::PublicKey vs dashcore::PublicKey conversions - Fix Address<NetworkUnchecked> vs Address<NetworkChecked> using require_network() - Implement AddressGenerator using BIP44 derivation instead of missing struct Test Fixes: - Fix platform integration safety test: separate null pointers for different types - Add missing ChainState fields: sync_base_height, synced_from_checkpoint - Add missing SpvStats fields: connected_peers, total_peers, header_height, filter_height All workspace crates now compile successfully with both cargo build and cargo test. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
|
Caution Review failedThe pull request is closed. WalkthroughTests adjust null-handle usage and type conversions; core structs gain new fields; fuzz target switches PSBT types to key-wallet; fuzz manifest adds key-wallet dependency; key-wallet-ffi refactors address bridging, error mappings, introduces derivation/account key types, and reworks Address/AddressGenerator to use KwAddress and direct network-driven derivation. Changes
Sequence Diagram(s)sequenceDiagram
participant Caller
participant AddressGenerator
participant XPub
participant Network
participant KwAddress
Caller->>AddressGenerator: generate(index)
AddressGenerator->>XPub: ckd_pub(account/chain/index)
XPub-->>AddressGenerator: child pubkey
AddressGenerator->>KwAddress: construct P2PKH(child pubkey)
AddressGenerator->>KwAddress: require_network(Network)
KwAddress-->>AddressGenerator: Address
AddressGenerator-->>Caller: Address
sequenceDiagram
participant Test
participant FFI
participant CoreHandle
Test->>FFI: ffi_dash_spv_get_core_handle(null FFIDashSpvClient)
FFI-->>Test: null CoreSDKHandle
Test->>FFI: ffi_dash_spv_release_core_handle(null CoreSDKHandle)
FFI-->>Test: no-op
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Suggested reviewers
Poem
Tip 🔌 Remote MCP (Model Context Protocol) integration is now available!Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats. 📜 Recent review detailsConfiguration used: CodeRabbit UI 💡 Knowledge Base configuration:
You can enable these sources in your CodeRabbit configuration. 📒 Files selected for processing (5)
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
Summary
This PR resolves multiple compilation errors across the rust-dashcore workspace that were preventing successful builds and test compilation.
Build Fixes
dashcore::psbttokey_wallet::psbtin fuzz targetskey-walletdependency tofuzz/Cargo.tomlkey-wallet-ffiCoinJoinNotEnabled,Serialization, andInvalidParametersecp256k1::PublicKeyanddashcore::PublicKeyAddress<NetworkUnchecked>vsAddress<NetworkChecked>Test Fixes
sync_base_heightandsynced_from_checkpointconnected_peers,total_peers,header_height, andfilter_heightVerification
cargo build- All workspace crates compile successfullycargo test --no-run- All tests compile successfullycargo fmt- Code formatting appliedSummary by CodeRabbit
New Features
Improvements
Tests
Chores