Avoid increment reorg counter twice (#2082)

This commit is contained in:
terence tsao
2019-03-26 17:01:43 -07:00
committed by GitHub
parent ac7d5a7780
commit f10f87725e

View File

@@ -146,7 +146,6 @@ func (c *ChainService) ApplyForkChoiceRule(ctx context.Context, block *pb.Beacon
if newState.Slot != postState.Slot {
log.Warnf("Reorg happened, post state slot at %d, new head state at slot %d",
postState.Slot-params.BeaconConfig().GenesisSlot, newState.Slot-params.BeaconConfig().GenesisSlot)
reorgCount.Inc()
}
reorgCount.Inc()