You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
4
+
5
+
## Overview
6
+
7
+
dash-spv-ffi provides C-compatible FFI bindings for the Dash SPV (Simplified Payment Verification) client. It wraps the Rust dash-spv library to enable usage from C, Swift, and other languages via a stable ABI.
**Important**: The unified SDK build process (`build_ios.sh`) merges dash-spv-ffi with platform SDK. You MUST build dash-spv-ffi first or changes won't be included!
46
+
47
+
## Testing
48
+
49
+
### Rust Tests
50
+
```bash
51
+
# Run all tests
52
+
cargo test
53
+
54
+
# Run specific test
55
+
cargo test test_client_lifecycle
56
+
57
+
# Run with output
58
+
cargo test -- --nocapture
59
+
60
+
# Run tests with real Dash node (requires DASH_SPV_IP env var)
// Quorum not found in global index - provide diagnostic info
186
+
let total_lists = engine.masternode_lists.len();
187
+
let(min_height, max_height) = if total_lists > 0{
188
+
let min = engine.masternode_lists.keys().min().copied().unwrap_or(0);
189
+
let max = engine.masternode_lists.keys().max().copied().unwrap_or(0);
190
+
(min, max)
191
+
}else{
192
+
(0,0)
193
+
};
194
+
195
+
FFIResult::error(
196
+
FFIErrorCode::ValidationError,
197
+
&format!(
198
+
"Quorum not found: type={}, hash={:x}. Core SDK has {} masternode lists ranging from height {} to {}. The quorum may not exist or the Core SDK may still be syncing.",
0 commit comments