Skip to content

Commit a13bb65

Browse files
committed
Drop update data custody info condition
1 parent 996c140 commit a13bb65

File tree

1 file changed

+6
-15
lines changed
  • beacon_node/http_api/src

1 file changed

+6
-15
lines changed

beacon_node/http_api/src/lib.rs

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3774,14 +3774,12 @@ pub fn serve<T: BeaconChainTypes>(
37743774
.and(network_tx_filter.clone())
37753775
.and(task_spawner_filter.clone())
37763776
.and(chain_filter.clone())
3777-
.and(network_globals.clone())
37783777
.and(warp_utils::json::json())
37793778
.then(
37803779
|not_synced_filter: Result<(), Rejection>,
37813780
network_tx: UnboundedSender<NetworkMessage<T::EthSpec>>,
37823781
task_spawner: TaskSpawner<T::EthSpec>,
37833782
chain: Arc<BeaconChain<T>>,
3784-
network_globals: Arc<NetworkGlobals<T::EthSpec>>,
37853783
preparation_data: Vec<ProposerPreparationData>| {
37863784
task_spawner.spawn_async_with_rejection(Priority::P0, async move {
37873785
not_synced_filter?;
@@ -3842,19 +3840,12 @@ pub fn serve<T: BeaconChainTypes>(
38423840
current_slot,
38433841
&chain.spec,
38443842
) {
3845-
// Don't update custody info if we're advertising a
3846-
// false custody group count.
3847-
if network_globals
3848-
.config
3849-
.advertise_false_custody_group_count
3850-
.is_none()
3851-
{
3852-
chain.update_data_column_custody_info(Some(
3853-
cgc_change
3854-
.effective_epoch
3855-
.start_slot(T::EthSpec::slots_per_epoch()),
3856-
))
3857-
}
3843+
chain.update_data_column_custody_info(Some(
3844+
cgc_change
3845+
.effective_epoch
3846+
.start_slot(T::EthSpec::slots_per_epoch()),
3847+
));
3848+
38583849
network_tx.send(NetworkMessage::CustodyCountChanged {
38593850
new_custody_group_count: cgc_change.new_custody_group_count,
38603851
sampling_count: cgc_change.sampling_count,

0 commit comments

Comments
 (0)