Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: is_new_chunk condition on block validation (#12782)
`height_created` shouldn't be used to check that chunk is new, because in the case of block skip block height will be strictly greater. `height_included` must be used and that's what method `is_new_chunk` does. Also using `is_genesis` for genesis case check (`self.prev_block_hash() == &CryptoHash::default()`) because it's equivalent and a little more neat.
- Loading branch information