prevBlock some times doesn't exist. Take this into consideration