|
|
|
@ -262,7 +262,6 @@ func (node *Node) VerifyNewBlock(newBlock *types.Block) error { |
|
|
|
|
if newBlock.NumberU64() <= node.Blockchain().CurrentBlock().NumberU64() { |
|
|
|
|
return errors.Errorf("block with the same block number is already committed: %d", newBlock.NumberU64()) |
|
|
|
|
} |
|
|
|
|
// TODO(jacky): make sure this uses the cached result from last consensus (if any)
|
|
|
|
|
if err := node.Blockchain().Validator().ValidateHeader(newBlock, true); err != nil { |
|
|
|
|
utils.Logger().Error(). |
|
|
|
|
Str("blockHash", newBlock.Hash().Hex()). |
|
|
|
|