contestada

which is correct? I had walked for two hours before I felt tired or I walked for two hours before I felt tired.