Modify block verification rule
Do not compare block timestamp with vote timestamp for block 0 and 1.
@@ -17,7 +17,8 @@ func verifyBlock(b module.Block, prev module.Block, validators module.ValidatorL
if err := b.Votes().Verify(prev, validators); err != nil {
return err
}
- if b.Timestamp() != b.Votes().Timestamp() {
+
+ if b.Height() > 1 && b.Timestamp() != b.Votes().Timestamp() {
return errors.New("bad timestamp")
}
return nil
