Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions dash-spv-ffi/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@ impl From<DetailedSyncProgress> for FFIDetailedSyncProgress {
#[repr(C)]
pub struct FFIChainState {
pub header_height: u32,
pub filter_header_height: u32,
pub masternode_height: u32,
pub last_chainlock_height: u32,
pub last_chainlock_hash: FFIString,
Expand All @@ -193,7 +192,6 @@ impl From<ChainState> for FFIChainState {
fn from(state: ChainState) -> Self {
FFIChainState {
header_height: state.headers.len() as u32,
filter_header_height: state.filter_headers.len() as u32,
masternode_height: state.last_masternode_diff_height.unwrap_or(0),
last_chainlock_height: state.last_chainlock_height.unwrap_or(0),
last_chainlock_hash: FFIString::new(
Expand Down
2 changes: 0 additions & 2 deletions dash-spv-ffi/tests/unit/test_type_conversions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ mod tests {
fn test_chain_state_none_values() {
let state = dash_spv::ChainState {
headers: vec![],
filter_headers: vec![],
last_chainlock_height: None,
last_chainlock_hash: None,
current_filter_tip: None,
Expand All @@ -175,7 +174,6 @@ mod tests {

let ffi_state = FFIChainState::from(state);
assert_eq!(ffi_state.header_height, 0);
assert_eq!(ffi_state.filter_header_height, 0);
assert_eq!(ffi_state.masternode_height, 0);
assert_eq!(ffi_state.last_chainlock_height, 0);
assert_eq!(ffi_state.current_filter_tip, 0);
Expand Down
325 changes: 0 additions & 325 deletions dash-spv/src/chain/fork_detector.rs

This file was deleted.

Loading