Skip to content

Commit

Permalink
fix issue for sync testnet blockchain
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaoxiaofeng committed Mar 3, 2022
1 parent bb858b4 commit 6c0965c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/block_validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func (v *BlockValidator) ValidateBody(block *types.Block) error {
flatSlotIdNew := epIDNew*posconfig.SlotCount + slotIDNew
flatSlotIdOld := epIDOld*posconfig.SlotCount + slotIDOld
if epIDNew > posconfig.ApolloEpochID {
if flatSlotIdNew <= flatSlotIdOld {
if flatSlotIdNew <= flatSlotIdOld && epIDNew != 19038 { // The testnet epoch 19038 has wrong block.skit it
return fmt.Errorf("Invalid slot in chain.")
}
}
Expand Down

0 comments on commit 6c0965c

Please sign in to comment.