move get block header to main.cpp

add decleration to main.cpp