Parser: applyBlockValidation revalidating original block instead of fixed #62176
Labels
[Feature] Block API
API that allows to express the block paradigm.
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
When initially parsing and loading blocks we attempt to validate their parsed attributes and apply auto-fixes when invalid, before attempting to validate again after the fixes have been applied. This is done after we get a new raw block back after a round of fix attempts, which we can revalidate.
However, looking at this section of code it appears as though we are revalidating the original
unvalidatedBlock
instead offixedBlock
during the second execution ofvalidateBlock()
.It looks to me like on the second run of
validateBlock()
, we should be passingfixedBlock
as the first param instead.The text was updated successfully, but these errors were encountered: