We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8144e5 commit 889cac9Copy full SHA for 889cac9
eth/chains/base.py
@@ -349,7 +349,16 @@ def validate_chain(
349
child, child.parent_hash, parent.hash))
350
should_check_seal = index in indices_to_check_seal
351
vm_class = cls.get_vm_class_for_block_number(child.block_number)
352
- vm_class.validate_header(child, parent, check_seal=should_check_seal)
+ try:
353
+ vm_class.validate_header(child, parent, check_seal=should_check_seal)
354
+ except ValidationError as exc:
355
+ raise ValidationError(
356
+ "%s is not a valid child of %s: %s" % (
357
+ child,
358
+ parent,
359
+ exc,
360
+ )
361
+ ) from exc
362
363
364
class Chain(BaseChain):
0 commit comments