EIP-3675: fix mixDigest validation
because EIP-4399 override mixDigest validation rule, there is no need to check mixDigest == ZERO_HASH `mixDigest` will carry POS block randomness value
This commit is contained in:
parent
ec59c691aa
commit
4846405c0e
|
@ -110,8 +110,9 @@ proc validateHeader(db: BaseChainDB; header, parentHeader: BlockHeader;
|
|||
return err("header extra data should be marked DAO")
|
||||
|
||||
if ttdReached:
|
||||
if not header.mixDigest.isZeroMemory:
|
||||
return err("Non-zero mix hash in a post-merge block")
|
||||
# EIP-4399 and EIP-3675
|
||||
# no need to check mixDigest because EIP-4399 override this field
|
||||
# checking rule
|
||||
|
||||
if not header.difficulty.isZero:
|
||||
return err("Non-zero difficulty in a post-merge block")
|
||||
|
|
Loading…
Reference in New Issue