Skip to content

Commit

Permalink
Add log
Browse files Browse the repository at this point in the history
  • Loading branch information
chopin-fan committed Dec 19, 2024
1 parent 3222d1c commit c522ab9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AElf.Kernel/ConsensusRequestMiningEventHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public Task HandleEventAsync(ConsensusRequestMiningEventData eventData)
var chain = await _blockchainService.GetChainAsync();
if (eventData.PreviousBlockHash != chain.BestChainHash)
{
Logger.LogDebug($"PreviousBlockHash:{eventData.PreviousBlockHash},BestChainHash:{chain.BestChainHash}");
Logger.LogDebug($"PreviousBlockHash:{eventData.PreviousBlockHash},BestChainHash:{chain.BestChainHash},BestChainHeight:{chain.BestChainHeight},preHeight:{eventData.PreviousBlockHeight}");
await TriggerConsensusEventAsync(chain.BestChainHash, chain.BestChainHeight);
Logger.LogDebug("Mining canceled because best chain already updated 1");
return;
Expand Down

0 comments on commit c522ab9

Please sign in to comment.