S31_valid_written_block_hash: Move hash validation logic from controller to model