Skip to content

Commit

Permalink
bugfix: evm root is not unique anymore, so this check is wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
gameofpointers committed Nov 4, 2024
1 parent 5785f4a commit 5667ae7
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions core/block_validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,6 @@ func NewBlockValidator(config *params.ChainConfig, headerChain *HeaderChain, eng
// validated at this point.
func (v *BlockValidator) ValidateBody(block *types.WorkObject) error {
nodeCtx := v.config.Location.Context()
// Check whether the block's known, and if not, that it's linkable
if nodeCtx == common.ZONE_CTX && v.hc.ProcessingState() {
if v.hc.bc.processor.HasBlockAndState(block.Hash(), block.NumberU64(nodeCtx)) {
return ErrKnownBlock
}
}
header := block.Header()
// Subordinate manifest must match ManifestHash in subordinate context, _iff_
// we have a subordinate (i.e. if we are not a zone)
Expand Down

0 comments on commit 5667ae7

Please sign in to comment.