save newly generated headers when in ready state.
misc fixes.
Merge branch 'master' of https://github.com/maxime01/btc
download fixes in ready state. clean-up.
send getblocks once the download is complete to find new blocks.
misc fixes.
download count fix.
use poll(2) on linux, select(2) on macos.
fix bad-free.
Merge branch 'master' into ncurses-ui
ncui: style, fixes, indentation.