If your shins still hurt after several weeks, then go and see a physician to have it checked. If you're unlucky, it might be periostitis which could take several months to heal. And even after it's healed your shins may be sensitive and prone to getting it again in training.
Sorry to hear about your pain. I'm a beginner and even the slightest shin encounter hurts, so I can feel your pain. With that said, you should be blocking with your knee, not your shin. The term 'shin block' is a misnomer, we only use our shins in practice. The Thai words translated to knee block. Think about it, if a guy throws a kick and hits your knee with his shin or foot, who is going to feel it more!