diff --git a/base_layer/common_types/src/chain_metadata.rs b/base_layer/common_types/src/chain_metadata.rs index 9f1a7c1b15..9ba211e69e 100644 --- a/base_layer/common_types/src/chain_metadata.rs +++ b/base_layer/common_types/src/chain_metadata.rs @@ -40,7 +40,7 @@ pub struct ChainMetadata { /// (exclusive). If `pruned_height` is equal to the `height_of_longest_chain` no blocks can be /// provided. Archival nodes wil always have an `pruned_height` of zero. pruned_height: u64, - /// The total accumuated proof of work of the longest chain + /// The total accumulated proof of work of the longest chain accumulated_difficulty: u128, } diff --git a/base_layer/core/src/base_node/state_machine_service/states/sync_decide.rs b/base_layer/core/src/base_node/state_machine_service/states/sync_decide.rs index 7b68623094..5f20cd3e28 100644 --- a/base_layer/core/src/base_node/state_machine_service/states/sync_decide.rs +++ b/base_layer/core/src/base_node/state_machine_service/states/sync_decide.rs @@ -96,7 +96,7 @@ impl DecideNextSync { .sync_peers .drain(..) .filter(|sync_peer| { - sync_peer.claimed_chain_metadata().pruning_horizon() <= local_metadata.height_of_longest_chain() + sync_peer.claimed_chain_metadata().pruned_height() <= local_metadata.height_of_longest_chain() }) .collect::>();