diff --git a/beacon_node/http_api/src/lib.rs b/beacon_node/http_api/src/lib.rs index a8e305f3c1..0152f20e98 100644 --- a/beacon_node/http_api/src/lib.rs +++ b/beacon_node/http_api/src/lib.rs @@ -1704,7 +1704,7 @@ pub fn serve( let syncing_data = api_types::SyncingData { is_syncing: network_globals.sync_state.read().is_syncing(), - is_optimistic, + is_optimistic: Some(is_optimistic), head_slot, sync_distance, }; diff --git a/beacon_node/http_api/tests/tests.rs b/beacon_node/http_api/tests/tests.rs index 38c06848cf..cc0281e454 100644 --- a/beacon_node/http_api/tests/tests.rs +++ b/beacon_node/http_api/tests/tests.rs @@ -1300,7 +1300,7 @@ impl ApiTester { let expected = SyncingData { is_syncing: false, - is_optimistic: false, + is_optimistic: Some(false), head_slot, sync_distance, }; diff --git a/common/eth2/src/types.rs b/common/eth2/src/types.rs index 3e480e0827..340d38b85a 100644 --- a/common/eth2/src/types.rs +++ b/common/eth2/src/types.rs @@ -552,7 +552,7 @@ pub struct VersionData { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] pub struct SyncingData { pub is_syncing: bool, - pub is_optimistic: bool, + pub is_optimistic: Option, pub head_slot: Slot, pub sync_distance: Slot, }