@@ -44,7 +44,7 @@ use trin_metrics::bridge::BridgeMetricsReporter;
4444use crate :: {
4545 api:: consensus:: ConsensusApi ,
4646 constants:: BEACON_GENESIS_TIME ,
47- gossip :: gossip_beacon_content ,
47+ put_content :: put_content_beacon_content ,
4848 stats:: { BeaconSlotStats , StatsReporter } ,
4949 types:: mode:: BridgeMode ,
5050 utils:: {
@@ -127,7 +127,7 @@ impl BeaconBridge {
127127 // test files have no slot number data, so report all gossiped content at height 0.
128128 let slot_stats = Arc :: new ( StdMutex :: new ( BeaconSlotStats :: new ( 0 ) ) ) ;
129129 for asset in assets. 0 . into_iter ( ) {
130- gossip_beacon_content (
130+ put_content_beacon_content (
131131 self . portal_client . clone ( ) ,
132132 asset. content_key . clone ( ) ,
133133 asset. content_value ( ) . expect ( "Error getting content value" ) ,
@@ -336,7 +336,7 @@ impl BeaconBridge {
336336 } ) ;
337337
338338 // Return the latest finalized block root if we successfully gossiped the latest bootstrap.
339- gossip_beacon_content ( portal_client, content_key, content_value, slot_stats) . await ?;
339+ put_content_beacon_content ( portal_client, content_key, content_value, slot_stats) . await ?;
340340 finalized_bootstrap. lock ( ) . await . finalized_block_root = latest_finalized_block_root;
341341 finalized_bootstrap. lock ( ) . await . in_progress = false ;
342342
@@ -402,7 +402,7 @@ impl BeaconBridge {
402402 ) ;
403403
404404 // Update the current known period if we successfully gossiped the latest data.
405- gossip_beacon_content ( portal_client, content_key, content_value, slot_stats) . await ?;
405+ put_content_beacon_content ( portal_client, content_key, content_value, slot_stats) . await ?;
406406 * current_period. lock ( ) . await = expected_current_period;
407407
408408 Ok ( ( ) )
@@ -426,7 +426,7 @@ impl BeaconBridge {
426426 LightClientOptimisticUpdateKey :: new ( update. signature_slot ) ,
427427 ) ;
428428 let content_value = BeaconContentValue :: LightClientOptimisticUpdate ( update. into ( ) ) ;
429- gossip_beacon_content ( portal_client, content_key, content_value, slot_stats) . await
429+ put_content_beacon_content ( portal_client, content_key, content_value, slot_stats) . await
430430 }
431431
432432 async fn serve_light_client_finality_update (
@@ -465,7 +465,7 @@ impl BeaconBridge {
465465 ) ;
466466 let content_value = BeaconContentValue :: LightClientFinalityUpdate ( update. into ( ) ) ;
467467
468- gossip_beacon_content ( portal_client, content_key, content_value, slot_stats) . await ?;
468+ put_content_beacon_content ( portal_client, content_key, content_value, slot_stats) . await ?;
469469 * finalized_slot. lock ( ) . await = new_finalized_slot;
470470
471471 Ok ( ( ) )
@@ -532,7 +532,7 @@ impl BeaconBridge {
532532 let content_value =
533533 BeaconContentValue :: HistoricalSummariesWithProof ( historical_summaries_with_proof) ;
534534
535- gossip_beacon_content ( portal_client, content_key, content_value, slot_stats) . await ?;
535+ put_content_beacon_content ( portal_client, content_key, content_value, slot_stats) . await ?;
536536 finalized_state_root. lock ( ) . await . state_root = latest_finalized_state_root;
537537 finalized_state_root. lock ( ) . await . in_progress = false ;
538538
0 commit comments