Skip to content

Commit bad7da7

Browse files
committed
resolve issue of being not able produce a block
1 parent f8047f1 commit bad7da7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/AElf.Kernel.Consensus.AEDPoS/Application/IrreversibleBlockHeightUnacceptableLogEventProcessor.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ protected override async Task ProcessLogEventAsync(Block block, LogEvent logEven
5151
var distanceToLib = new IrreversibleBlockHeightUnacceptable();
5252
distanceToLib.MergeFrom(logEvent);
5353

54+
if (distanceToLib.DistanceToIrreversibleBlockHeight > 0)
5455
{
5556
var chain = await _blockchainService.GetChainAsync();
5657
Logger.LogDebug($"Distance to lib height: {distanceToLib.DistanceToIrreversibleBlockHeight}");

0 commit comments

Comments
 (0)