From 5cd3fa3335914a3228128c6e48a42dfbbf5c54d6 Mon Sep 17 00:00:00 2001 From: uink45 <79078981+uink45@users.noreply.github.com> Date: Tue, 5 Nov 2024 15:14:57 +1000 Subject: [PATCH] Update GossipSubManager.cs --- .../Networking/Gossip/GossipSubManager.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Lantern.Beacon/Networking/Gossip/GossipSubManager.cs b/src/Lantern.Beacon/Networking/Gossip/GossipSubManager.cs index d8cd10e..6ee9d05 100644 --- a/src/Lantern.Beacon/Networking/Gossip/GossipSubManager.cs +++ b/src/Lantern.Beacon/Networking/Gossip/GossipSubManager.cs @@ -78,7 +78,7 @@ private void HandleLightClientFinalityUpdate(PeerId peerId, byte[] update) { CheckIfPeerExistsInGossip(peerId); - _logger.LogInformation("Received light client finality update from gossip"); + _logger.LogInformation("Received light client finality update from gossip peer {PeerId}", peerId); var denebFinalizedPeriod = AltairHelpers.ComputeSyncCommitteePeriod( Phase0Helpers.ComputeEpochAtSlot(syncProtocol.DenebLightClientStore.FinalizedHeader.Beacon.Slot)); @@ -98,7 +98,7 @@ private void HandleLightClientFinalityUpdate(PeerId peerId, byte[] update) if (result) { - _logger.LogInformation("Processed light client finality update from gossip"); + _logger.LogInformation("Processed light client finality update from gossip peer {PeerId}", peerId); if (!DenebHelpers.ShouldForwardFinalizedLightClientUpdate(lightClientFinalityUpdate, oldFinalizedHeader, syncProtocol)) @@ -128,7 +128,7 @@ private void HandleLightClientOptimisticUpdate(PeerId peerId, byte[] update) { CheckIfPeerExistsInGossip(peerId); - _logger.LogInformation("Received light client optimistic update from gossip"); + _logger.LogInformation("Received light client optimistic update from gossip peer {PeerId}", peerId); var denebFinalizedPeriod = AltairHelpers.ComputeSyncCommitteePeriod(Phase0Helpers.ComputeEpochAtSlot(syncProtocol.DenebLightClientStore.FinalizedHeader.Beacon.Slot)); var denebCurrentPeriod = AltairHelpers.ComputeSyncCommitteePeriod(Phase0Helpers.ComputeEpochAtSlot(Phase0Helpers.ComputeCurrentSlot(syncProtocol.Options.GenesisTime))); @@ -144,12 +144,12 @@ private void HandleLightClientOptimisticUpdate(PeerId peerId, byte[] update) if (result) { - _logger.LogInformation("Processed light client optimistic update from gossip"); + _logger.LogInformation("Processed light client optimistic update from gossip peer {PeerId}", peerId); if (!DenebHelpers.ShouldForwardLightClientOptimisticUpdate(lightClientOptimisticUpdate, oldOptimisticHeader, syncProtocol)) return; - LightClientFinalityUpdate!.Publish(update); + LightClientOptimisticUpdate!.Publish(update); _logger.LogDebug("Forwarded light client optimistic update to gossip"); syncProtocol.CurrentLightClientOptimisticUpdate = lightClientOptimisticUpdate;